summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-02-18 23:07:00 +0000
committerGitHub <noreply@github.com>2020-02-18 23:07:00 +0000
commit9f1f2e66757d49a7e7096501514bd90a53190ec0 (patch)
tree6f912c92446f89fbdbd0dac9a17212a28c575b08
parent530f8963f36ce5bb74428f47c5b75cdd3f8076b1 (diff)
downloadgitea-9f1f2e66757d49a7e7096501514bd90a53190ec0.tar.gz
gitea-9f1f2e66757d49a7e7096501514bd90a53190ec0.zip
Set max-width on review-box comment box (#10348)
-rw-r--r--web_src/less/_review.less22
1 files changed, 22 insertions, 0 deletions
diff --git a/web_src/less/_review.less b/web_src/less/_review.less
index 91527903cb..475fa59656 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;
+ }
}