diff options
-rw-r--r-- | templates/repo/issue/view_content/reference_issue_dialog.tmpl | 34 | ||||
-rw-r--r-- | web_src/css/base.css | 7 |
2 files changed, 23 insertions, 18 deletions
diff --git a/templates/repo/issue/view_content/reference_issue_dialog.tmpl b/templates/repo/issue/view_content/reference_issue_dialog.tmpl index 5f338f6768..f6ac4192ab 100644 --- a/templates/repo/issue/view_content/reference_issue_dialog.tmpl +++ b/templates/repo/issue/view_content/reference_issue_dialog.tmpl @@ -5,26 +5,24 @@ <div class="content tw-text-left"> <form class="ui form form-fetch-action" action="{{printf "%s/issues/new" .Repository.Link}}" method="post"> {{.CsrfTokenHtml}} - <div class="ui segment content"> - <div class="field"> - <span class="text"><strong>{{ctx.Locale.Tr "repository"}}</strong></span> - <div class="ui search normal selection dropdown issue_reference_repository_search"> - <div class="default text">{{.Repository.FullName}}</div> - <div class="menu"></div> - </div> - </div> - <div class="field"> - <span class="text"><strong>{{ctx.Locale.Tr "repo.milestones.title"}}</strong></span> - <input name="title" value="" autofocus required maxlength="255" autocomplete="off"> - </div> - <div class="field"> - <span class="text"><strong>{{ctx.Locale.Tr "repo.issues.reference_issue.body"}}</strong></span> - <textarea name="content" class="form-control"></textarea> - </div> - <div class="text right"> - <button class="ui primary button">{{ctx.Locale.Tr "repo.issues.create"}}</button> + <div class="field"> + <label><strong>{{ctx.Locale.Tr "repository"}}</strong></label> + <div class="ui search selection dropdown issue_reference_repository_search"> + <div class="default text">{{.Repository.FullName}}</div> + <div class="menu"></div> </div> </div> + <div class="field"> + <label><strong>{{ctx.Locale.Tr "repo.milestones.title"}}</strong></label> + <input name="title" value="" autofocus required maxlength="255" autocomplete="off"> + </div> + <div class="field"> + <label><strong>{{ctx.Locale.Tr "repo.issues.reference_issue.body"}}</strong></label> + <textarea name="content" class="form-control"></textarea> + </div> + <div class="text right"> + <button class="ui primary button">{{ctx.Locale.Tr "repo.issues.create"}}</button> + </div> </form> </div> </div> diff --git a/web_src/css/base.css b/web_src/css/base.css index 7e781aa97b..831044756f 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -374,6 +374,7 @@ a.label, .ui.selection.dropdown .menu > .item { border-color: var(--color-secondary); + white-space: nowrap; } .ui.selection.visible.dropdown > .text:not(.default) { @@ -390,6 +391,12 @@ a.label, color: var(--color-text-light-2); } +.ui.dropdown > .text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + /* extend fomantic style '.ui.dropdown > .text > img' to include svg.img */ .ui.dropdown > .text > .img { margin-left: 0; |