style(mobile/context_menu): taller height + small animation when expanding items

This commit is contained in:
Elian Doran 2025-11-28 23:21:31 +02:00
parent 5847ce5c14
commit 19cf07564f
No known key found for this signature in database
2 changed files with 18 additions and 11 deletions

View File

@ -1316,7 +1316,7 @@ body.mobile #context-menu-container.mobile-bottom-menu {
inset-inline-end: 0 !important;
bottom: 0 !important;
top: unset !important;
max-height: 70vh;
max-height: 90vh;
overflow: auto !important;
user-select: none;
-webkit-user-select: none;

View File

@ -367,19 +367,26 @@ body.mobile .dropdown-menu {
padding: var(--dropdown-menu-padding-vertical) var(--dropdown-menu-padding-horizontal);
}
&.submenu-open {
.dropdown-toggle {
padding-bottom: var(--dropdown-menu-padding-vertical);
}
.dropdown-menu {
--menu-background-color: rgba(0, 0, 0, 0.15);
border-radius: 0;
max-height: 0;
transition: max-height 100ms ease-in;
display: block !important;
&.show {
max-height: 1000px;
}
.dropdown-item {
background: transparent;
}
}
&.submenu-open {
.dropdown-toggle {
padding-bottom: var(--dropdown-menu-padding-vertical);
}
}
}
}