Skip to content

Commit 9f1f2e6

Browse files
authored
Set max-width on review-box comment box (#10348)
1 parent 530f896 commit 9f1f2e6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

web_src/less/_review.less

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,26 @@
142142
overflow-x: auto;
143143
}
144144
}
145+
146+
#review-box .CodeMirror-scroll {
147+
max-width: calc(100vw - 70px);
148+
}
149+
}
150+
151+
@media only screen and (min-width: 768px) and (max-width: 992px) {
152+
#review-box .CodeMirror-scroll {
153+
max-width: 700px;
154+
}
155+
}
156+
157+
@media only screen and (min-width: 992px) and (max-width: 1200px) {
158+
#review-box .CodeMirror-scroll {
159+
max-width: 800px;
160+
}
161+
}
162+
163+
@media only screen and (min-width: 1200px) {
164+
#review-box .CodeMirror-scroll {
165+
max-width: 900px;
166+
}
145167
}

0 commit comments

Comments
 (0)