diff --git a/web_src/less/_review.less b/web_src/less/_review.less index 91527903cb3..475fa59656f 100644 --- a/web_src/less/_review.less +++ b/web_src/less/_review.less @@ -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; + } }