Browse Source

Set max-width on review-box comment box (#10348)

tags/v1.12.0-dev
zeripath GitHub 5 years ago
parent
commit
c271536b3d
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      web_src/less/_review.less

+ 22
- 0
web_src/less/_review.less View File

@@ -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;
}
}

Loading…
Cancel
Save