From 784b570428f4e9067cd4b62a7eca672283c7f365 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 23 Oct 2025 04:47:27 +0800 Subject: [PATCH] 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 f0b32f9684..b5d31908b2 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); }