From 9f1f2e66757d49a7e7096501514bd90a53190ec0 Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 18 Feb 2020 23:07:00 +0000 Subject: [PATCH] Set max-width on review-box comment box (#10348) --- web_src/less/_review.less | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/web_src/less/_review.less b/web_src/less/_review.less index 91527903c..475fa5965 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; + } }