mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 22:39:36 +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 {
|
.ant-dropdown-menu .ant-dropdown-menu-sub {
|
||||||
max-height: 80vh;
|
max-height: min(300px, 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) {
|
||||||
|
.ant-dropdown-menu .ant-dropdown-menu-sub {
|
||||||
|
max-height: 30vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ant-dropdown {
|
.ant-dropdown {
|
||||||
background-color: var(--ant-color-bg-elevated);
|
background-color: var(--ant-color-bg-elevated);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user