Skip to content

Commit cbf5dff

Browse files
Fix submit review form (#11252)
* Fix submit review form Signed-off-by: Andrew Thornton <[email protected]> * placate lint Signed-off-by: Andrew Thornton <[email protected]> * try something different Signed-off-by: Andrew Thornton <[email protected]> * Update web_src/less/_base.less Co-authored-by: techknowlogick <[email protected]>
1 parent 33738ff commit cbf5dff

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

templates/repo/diff/new_review.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<span class="text">{{.i18n.Tr "repo.diff.review"}}</span>
44
<i class="dropdown icon"></i>
55
</div>
6-
<div class="menu">
6+
<div class="menu review-box">
77
<div class="ui clearing segment">
88
<form class="ui form" action="{{.Link}}/reviews/submit" method="post">
99
{{.CsrfTokenHtml}}

web_src/less/_base.less

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,12 +1231,21 @@ i.icon.centerlock {
12311231

12321232
/* limit width of all direct dropdown menu children */
12331233
/* https://github.com/go-gitea/gitea/pull/10835 */
1234-
.dropdown:not(.selection) > .menu > * {
1234+
.dropdown:not(.selection) > .menu:not(.review-box) > * {
12351235
max-width: 300px;
12361236
overflow-x: hidden;
12371237
text-overflow: ellipsis;
12381238
}
12391239

1240+
.dropdown:not(.selection) > .menu.review-box > * {
1241+
@media only screen and (max-height: 700px) {
1242+
.CodeMirror,
1243+
.CodeMirror-scroll {
1244+
min-height: 100px;
1245+
}
1246+
}
1247+
}
1248+
12401249
.text-label {
12411250
display: inline-flex !important;
12421251
align-items: center !important;

0 commit comments

Comments
 (0)