Skip to content

Commit 3e40f8b

Browse files
6543zeripath
andauthored
Set max-width on review-box comment box (#10348) (#10353)
Co-authored-by: zeripath <[email protected]>
1 parent df5f1d9 commit 3e40f8b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

web_src/less/_review.less

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,36 @@
132132
.ui.blob-excerpt:hover {
133133
color: #428bca;
134134
}
135+
136+
@media only screen and (max-width: 768px) {
137+
#review-box > .menu {
138+
> .ui.segment {
139+
width: 94vw;
140+
}
141+
.editor-toolbar {
142+
overflow-x: auto;
143+
}
144+
}
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+
}
167+
}

0 commit comments

Comments
 (0)