Fix the editor height in review box (#19003) (#19147)

Backport #19003

Fix the height problem in  https://github.com/go-gitea/gitea/pull/18862#issuecomment-1059329539

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
zeripathandwxiaoguang authored and GitHub committed 2022-03-20 10:29:49 +08:00
1 parent 45c836badc
commit ea56bdca5f
2 files changed
+9 -1

No files matched your search

+7
View File
@@ -197,6 +197,13 @@ a.blob-excerpt:hover {
color: #fff;
}
// See the comment of createCommentEasyMDE() for the review editor
// EasyMDE's options can not handle minHeight & maxHeight together correctly, we have to set minHeight in JS code
#review-box .CodeMirror-scroll {
min-height: 80px;
max-height: calc(100vh - 360px);
}
@media @mediaSm {
#review-box > .menu {
> .ui.segment {