From 1e06c1e392b0842485407d54f3ef31f39405a7b5 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 18 Apr 2024 21:31:53 +0200 Subject: [PATCH] Improve "Reference in new issue" modal (#30547) Fixes: https://github.com/go-gitea/gitea/issues/29994 Also some misc enhancements done to the form in the modal. Screenshot 2024-04-17 at 23 02 55 (cherry picked from commit dd8e6ae270b4b5e91a152a145978029dacb938ff) --- .../view_content/reference_issue_dialog.tmpl | 34 +++++++++---------- 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 5f338f676..f6ac4192a 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 @@
{{.CsrfTokenHtml}} -
-
- {{ctx.Locale.Tr "repository"}} - -
-
- {{ctx.Locale.Tr "repo.milestones.title"}} - -
-
- {{ctx.Locale.Tr "repo.issues.reference_issue.body"}} - -
-
- +
+ +
+
+ + +
+
+ + +
+
+ +
diff --git a/web_src/css/base.css b/web_src/css/base.css index d2788babb..23ef57667 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -453,6 +453,7 @@ a.label, .ui.selection.dropdown .menu > .item { border-color: var(--color-secondary); + white-space: nowrap; } .ui.selection.visible.dropdown > .text:not(.default) { @@ -474,6 +475,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;