mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 19:30:17 +08:00
🐛 fix: improve dropdown submenu scrolling for tag move functionality
- 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
This commit is contained in:
parent
6f63eefa86
commit
8df196b902
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user