From bcfe1f91d243fcd6d6ed62e17cac09a2d87e78aa Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sun, 13 Oct 2024 11:46:55 +0800 Subject: [PATCH] Fix dropdown content overflow (#31610) (#32250) Backport #31610 by charles7668 close #31602 Co-authored-by: charles <30816317+charles7668@users.noreply.github.com> 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 067772ef59..8587e4bfbd 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1354,6 +1354,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 */ }