From 569f06a194ec9b7c04e5824b7e46c6ee37dbd810 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 23 Oct 2025 04:44:00 +0800 Subject: [PATCH] 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 b082824e87..f0b32f9684 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; } }