From 09214a3020333eea51162cf58639556ee1f7d8e9 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 23 Oct 2025 04:22:43 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9B=20fix:=20improve=20dropdown=20?= =?UTF-8?q?submenu=20scrolling=20for=20tag=20move=20functionality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set max-height to min(400px, 80vh) for dropdown submenus - Ensures scrollable list when moving topics to tags with many assistants - Fixes issue where some tags cannot be displayed in move-to dropdown Fixes #10877 --- src/renderer/src/assets/styles/ant.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/assets/styles/ant.css b/src/renderer/src/assets/styles/ant.css index 30005ff73..7088e4c81 100644 --- a/src/renderer/src/assets/styles/ant.css +++ b/src/renderer/src/assets/styles/ant.css @@ -102,7 +102,7 @@ } .ant-dropdown-menu .ant-dropdown-menu-sub { - max-height: 80vh; + max-height: min(400px, 80vh); width: max-content; overflow-y: auto; overflow-x: hidden; From 8df196b90206e69460c678bf29ff58ff9458c784 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 23 Oct 2025 04:22:43 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9B=20fix:=20improve=20dropdown=20?= =?UTF-8?q?submenu=20scrolling=20for=20tag=20move=20functionality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set max-height to min(300px, 80vh) for dropdown submenus - Add media query for small height devices (≤600px) to use 30vh - Ensures scrollable list when moving topics to tags with many assistants - Fixes issue where some tags cannot be displayed in move-to dropdown Fixes #10877 --- src/renderer/src/assets/styles/ant.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/assets/styles/ant.css b/src/renderer/src/assets/styles/ant.css index 30005ff73..b082824e8 100644 --- a/src/renderer/src/assets/styles/ant.css +++ b/src/renderer/src/assets/styles/ant.css @@ -102,13 +102,19 @@ } .ant-dropdown-menu .ant-dropdown-menu-sub { - max-height: 80vh; + max-height: min(300px, 80vh); width: max-content; overflow-y: auto; overflow-x: hidden; border: 0.5px solid var(--color-border); } +@media (max-height: 600px) { + .ant-dropdown-menu .ant-dropdown-menu-sub { + max-height: 30vh; + } +} + .ant-dropdown { background-color: var(--ant-color-bg-elevated); overflow: hidden; From 569f06a194ec9b7c04e5824b7e46c6ee37dbd810 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 23 Oct 2025 04:44:00 +0800 Subject: [PATCH 3/4] fix: increase dropdown menu max height for better visibility --- src/renderer/src/assets/styles/ant.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/assets/styles/ant.css b/src/renderer/src/assets/styles/ant.css index b082824e8..f0b32f968 100644 --- a/src/renderer/src/assets/styles/ant.css +++ b/src/renderer/src/assets/styles/ant.css @@ -102,16 +102,17 @@ } .ant-dropdown-menu .ant-dropdown-menu-sub { - max-height: min(300px, 80vh); + max-height: min(500px, 80vh); width: max-content; overflow-y: auto; overflow-x: hidden; border: 0.5px solid var(--color-border); } -@media (max-height: 600px) { - .ant-dropdown-menu .ant-dropdown-menu-sub { - max-height: 30vh; +@media (max-height: 700px) { + .ant-dropdown .ant-dropdown-menu, + .ant-dropdown-menu-sub { + max-height: 50vh !important; } } From 784b570428f4e9067cd4b62a7eca672283c7f365 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 23 Oct 2025 04:47:27 +0800 Subject: [PATCH 4/4] fix: adjust dropdown menu max height for improved usability --- src/renderer/src/assets/styles/ant.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/assets/styles/ant.css b/src/renderer/src/assets/styles/ant.css index f0b32f968..b5d31908b 100644 --- a/src/renderer/src/assets/styles/ant.css +++ b/src/renderer/src/assets/styles/ant.css @@ -111,7 +111,7 @@ @media (max-height: 700px) { .ant-dropdown .ant-dropdown-menu, - .ant-dropdown-menu-sub { + .ant-dropdown .ant-dropdown-menu-sub { max-height: 50vh !important; } } @@ -124,7 +124,7 @@ } .ant-dropdown .ant-dropdown-menu { - max-height: 80vh; + max-height: min(500px, 80vh); overflow-y: auto; border: 0.5px solid var(--color-border); }