Skip to content

Build your personal knowledge base with Trilium Notes

client/ui/menus: hide the separators followed by a menu heading

Adorian Doran828d07523d2d
diff --git a/apps/client/src/stylesheets/theme-next/menus.css b/apps/client/src/stylesheets/theme-next/menus.css
index a33e1b734c..67b916fd96 100644
--- a/apps/client/src/stylesheets/theme-next/menus.css
+++ b/apps/client/src/stylesheets/theme-next/menus.css
@@ -237,6 +237,10 @@ body[dir=rtl] .dropdown-submenu .dropdown-toggle::after {
border-top: 1px solid var(--menu-item-delimiter-color);
}
+.dropdown-divider:has(+ li > .dropdown-header) {
+ display: none;
+}
+
/* Static menus (used as a list, such as on the note revisions dialog) */
body.desktop .dropdown-menu.static {
box-shadow: unset;