From 4aba4f8dc31fbd74c5f797b51c71b0bbda36af05 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 22 Apr 2024 14:52:08 +0800 Subject: [PATCH] Fix dropdown text ellipsis (#30628) (#30633) Backport #30628 by @wxiaoguang Follow https://github.com/go-gitea/gitea/pull/30547#discussion_r1573866519 Fix #30624 The Fomantic UI Dropdown wasn't designed to work that way, its "text" element might contain images. So the "overflow" shouldn't be added to any general dropdown text. ![image](https://github.com/go-gitea/gitea/assets/2114189/f6ceaabd-bc89-4bf2-baa2-a6f0324c1962) Co-authored-by: wxiaoguang --- .../repo/issue/view_content/reference_issue_dialog.tmpl | 8 ++++---- web_src/css/base.css | 6 ------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/templates/repo/issue/view_content/reference_issue_dialog.tmpl b/templates/repo/issue/view_content/reference_issue_dialog.tmpl index f6ac4192ab..c7a471f55e 100644 --- a/templates/repo/issue/view_content/reference_issue_dialog.tmpl +++ b/templates/repo/issue/view_content/reference_issue_dialog.tmpl @@ -2,13 +2,13 @@
{{ctx.Locale.Tr "repo.issues.context.reference_issue"}}
-
-
+
+ {{.CsrfTokenHtml}}
@@ -18,7 +18,7 @@
- +
diff --git a/web_src/css/base.css b/web_src/css/base.css index 70d939b52e..4f40f1228b 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -506,12 +506,6 @@ ol.ui.list li, 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;