diff --git a/src/renderer/src/assets/styles/ant.css b/src/renderer/src/assets/styles/ant.css index 30005ff738..b082824e87 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;