Skip to content

Commit 6027774

Browse files
committed
use fixed width for review box to avoid overflow issue
1 parent 3e8db31 commit 6027774

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

web_src/css/review.css

+4-22
Original file line numberDiff line numberDiff line change
@@ -225,28 +225,10 @@ a.blob-excerpt:hover {
225225
max-height: calc(100vh - 360px);
226226
}
227227

228-
@media (max-width: 767px) {
229-
.review-box-panel .CodeMirror-scroll {
230-
max-width: calc(100vw - 70px);
231-
}
232-
}
233-
234-
@media (min-width: 768px) and (max-width: 991px) {
235-
.review-box-panel .CodeMirror-scroll {
236-
max-width: 700px;
237-
}
238-
}
239-
240-
@media (min-width: 992px) and (max-width: 1200px) {
241-
.review-box-panel .CodeMirror-scroll {
242-
max-width: 800px;
243-
}
244-
}
245-
246-
@media (min-width: 1201px) {
247-
.review-box-panel .CodeMirror-scroll {
248-
max-width: 900px;
249-
}
228+
.review-box-panel .editor-toolbar,
229+
.review-box-panel .CodeMirror-scroll {
230+
width: min(calc(100vw - 2em), 800px);
231+
max-width: none;
250232
}
251233

252234
#review-box {

0 commit comments

Comments
 (0)