Skip to content

Commit

Permalink
Fix submit review form (go-gitea#11252)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
2 people authored and Yohann Delafollye committed Jul 31, 2020
1 parent acb615b commit e2b56e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/repo/diff/new_review.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<span class="text">{{.i18n.Tr "repo.diff.review"}}</span>
<i class="dropdown icon"></i>
</div>
<div class="menu">
<div class="menu review-box">
<div class="ui clearing segment">
<form class="ui form" action="{{.Link}}/reviews/submit" method="post">
{{.CsrfTokenHtml}}
Expand Down
11 changes: 10 additions & 1 deletion web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -1231,12 +1231,21 @@ i.icon.centerlock {

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

.dropdown:not(.selection) > .menu.review-box > * {
@media only screen and (max-height: 700px) {
.CodeMirror,
.CodeMirror-scroll {
min-height: 100px;
}
}
}

.text-label {
display: inline-flex !important;
align-items: center !important;
Expand Down

0 comments on commit e2b56e2

Please sign in to comment.