From 196cef0221b1182d1ac16e639d0e47c1b71cc154 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 22 Apr 2024 07:14:33 +0800 Subject: [PATCH] Fix dropdown text ellipsis (#30628) 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) (cherry picked from commit 1e4867730b261352d63098b85cf53ca05867c8c2) (cherry picked from commit 112df5a3feec88e70d2ed80ff19139d200784b67) --- .../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 7c13f352cd..0ab923594c 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -518,12 +518,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;