From 6fced335817a23f5a37a601c7f1ebf111821fa32 Mon Sep 17 00:00:00 2001 From: charles <30816317+charles7668@users.noreply.github.com> Date: Sun, 13 Oct 2024 10:43:43 +0800 Subject: [PATCH] Fix dropdown content overflow (#31610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #31602 ![圖片](https://github.com/go-gitea/gitea/assets/30816317/43722917-bc5e-4e06-b0de-db52552a20df) --------- Co-authored-by: wxiaoguang --- templates/devtest/fomantic-dropdown.tmpl | 40 ++++++++++++++++++------ web_src/css/base.css | 4 +++ 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/templates/devtest/fomantic-dropdown.tmpl b/templates/devtest/fomantic-dropdown.tmpl index 57a7c1313e..0b9d227220 100644 --- a/templates/devtest/fomantic-dropdown.tmpl +++ b/templates/devtest/fomantic-dropdown.tmpl @@ -29,15 +29,16 @@
empty multiple dropdown
- -
@@ -50,6 +51,27 @@
+
+ +

Selection

diff --git a/web_src/css/base.css b/web_src/css/base.css index 223d9fbad6..8d9f810ef8 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1364,6 +1364,10 @@ table th[data-sortt-desc] .svg { min-width: 0; /* make ellipsis work */ } +.ui.multiple.selection.dropdown { + flex-wrap: wrap; +} + .ui.ui.dropdown.selection { min-width: 14em; /* match the default min width */ }