fix: increase dropdown menu max height for better visibility

This commit is contained in:
suyao 2025-10-23 04:44:00 +08:00
parent 8df196b902
commit 569f06a194
No known key found for this signature in database

View File

@ -102,16 +102,17 @@
} }
.ant-dropdown-menu .ant-dropdown-menu-sub { .ant-dropdown-menu .ant-dropdown-menu-sub {
max-height: min(300px, 80vh); max-height: min(500px, 80vh);
width: max-content; width: max-content;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
border: 0.5px solid var(--color-border); border: 0.5px solid var(--color-border);
} }
@media (max-height: 600px) { @media (max-height: 700px) {
.ant-dropdown-menu .ant-dropdown-menu-sub { .ant-dropdown .ant-dropdown-menu,
max-height: 30vh; .ant-dropdown-menu-sub {
max-height: 50vh !important;
} }
} }