mirror of https://github.com/go-gitea/gitea.git
Fix submit review form (#11252)
* Fix submit review form Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * try something different Signed-off-by: Andrew Thornton <art27@cantab.net> * Update web_src/less/_base.less Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
33738ff91b
commit
cbf5dffaf2
|
@ -3,7 +3,7 @@
|
||||||
<span class="text">{{.i18n.Tr "repo.diff.review"}}</span>
|
<span class="text">{{.i18n.Tr "repo.diff.review"}}</span>
|
||||||
<i class="dropdown icon"></i>
|
<i class="dropdown icon"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu">
|
<div class="menu review-box">
|
||||||
<div class="ui clearing segment">
|
<div class="ui clearing segment">
|
||||||
<form class="ui form" action="{{.Link}}/reviews/submit" method="post">
|
<form class="ui form" action="{{.Link}}/reviews/submit" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
|
|
|
@ -1231,12 +1231,21 @@ i.icon.centerlock {
|
||||||
|
|
||||||
/* limit width of all direct dropdown menu children */
|
/* limit width of all direct dropdown menu children */
|
||||||
/* https://github.com/go-gitea/gitea/pull/10835 */
|
/* https://github.com/go-gitea/gitea/pull/10835 */
|
||||||
.dropdown:not(.selection) > .menu > * {
|
.dropdown:not(.selection) > .menu:not(.review-box) > * {
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown:not(.selection) > .menu.review-box > * {
|
||||||
|
@media only screen and (max-height: 700px) {
|
||||||
|
.CodeMirror,
|
||||||
|
.CodeMirror-scroll {
|
||||||
|
min-height: 100px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.text-label {
|
.text-label {
|
||||||
display: inline-flex !important;
|
display: inline-flex !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
|
|
Loading…
Reference in New Issue