diff options
author | 6543 <6543@obermui.de> | 2020-02-19 01:59:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 18:59:14 -0600 |
commit | 3e40f8bebc98009259ec822b94759c25f43d3024 (patch) | |
tree | be34958829e617885713cb10fa6a0a5ad410e0a1 /web_src | |
parent | df5f1d9dca6cd995aa8e71df896c8c4689f1ee1a (diff) | |
download | gitea-3e40f8bebc98009259ec822b94759c25f43d3024.tar.gz gitea-3e40f8bebc98009259ec822b94759c25f43d3024.zip |
Set max-width on review-box comment box (#10348) (#10353)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/_review.less | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/web_src/less/_review.less b/web_src/less/_review.less index a5e299accc..475fa59656 100644 --- a/web_src/less/_review.less +++ b/web_src/less/_review.less @@ -132,3 +132,36 @@ .ui.blob-excerpt:hover { color: #428bca; } + +@media only screen and (max-width: 768px) { + #review-box > .menu { + > .ui.segment { + width: 94vw; + } + .editor-toolbar { + 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; + } +} |