Skip to content

Build your personal knowledge base with Trilium Notes

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

Elian Doran19cf07564f3d
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 342cd671a3..62afc2012f 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -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;
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css
index c2bb97c00b..5e62b80116 100644
--- a/apps/client/src/stylesheets/theme-next/base.css
+++ b/apps/client/src/stylesheets/theme-next/base.css
@@ -367,20 +367,27 @@ 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-menu {
- --menu-background-color: rgba(0, 0, 0, 0.15);
- border-radius: 0;
-
- .dropdown-item {
- background: transparent;
- }
+ .dropdown-item {
+ background: transparent;
}
}
+
+ &.submenu-open {
+ .dropdown-toggle {
+ padding-bottom: var(--dropdown-menu-padding-vertical);
+ }
+ }
}
}
/* #endregion */