Skip to content

Commit

Permalink
Set max-width on review-box comment box (#10348)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored Feb 18, 2020
1 parent 530f896 commit 9f1f2e6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions web_src/less/_review.less
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,26 @@
overflow-x: auto;
}
}

#review-box .CodeMirror-scroll {
max-width: calc(100vw - 70px);
}
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
#review-box .CodeMirror-scroll {
max-width: 700px;
}
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
#review-box .CodeMirror-scroll {
max-width: 800px;
}
}

@media only screen and (min-width: 1200px) {
#review-box .CodeMirror-scroll {
max-width: 900px;
}
}

0 comments on commit 9f1f2e6

Please sign in to comment.