style/canvas: tweak the main menu

This commit is contained in:
Adorian Doran 2025-10-15 18:01:21 +03:00
parent d4fa6153c4
commit 48c7411ce4
2 changed files with 19 additions and 2 deletions

View File

@ -267,7 +267,9 @@ body[dir=rtl] .dropdown-menu:not([data-popper-placement="bottom-start"]) .dropdo
/* Menu item group heading */ /* Menu item group heading */
/* The heading body */ /* The heading body */
.dropdown-menu h6 { .dropdown-menu h6,
.excalidraw .dropdown-menu-container .dropdown-menu-group-title,
.excalidraw .dropdown-menu-container div[data-testid="canvas-background-label"] {
position: relative; position: relative;
background: transparent; background: transparent;
padding: 1em 8px 14px 8px; padding: 1em 8px 14px 8px;
@ -278,7 +280,9 @@ body[dir=rtl] .dropdown-menu:not([data-popper-placement="bottom-start"]) .dropdo
} }
/* The delimiter line */ /* The delimiter line */
.dropdown-menu h6::before { .dropdown-menu h6::before,
.excalidraw .dropdown-menu-container .dropdown-menu-group-title::before,
.excalidraw .dropdown-menu-container div[data-testid="canvas-background-label"]::before {
content: ""; content: "";
position: absolute; position: absolute;
bottom: 8px; bottom: 8px;

View File

@ -82,6 +82,19 @@
opacity: 1; opacity: 1;
} }
/* Main menu */
/* Hide separators - no longer needed as the menu group headers feature a delimiter line */
.excalidraw .Island.dropdown-menu-container>div:not(:has(>*)) {
display: none;
}
/* Menu group header */
.excalidraw .dropdown-menu-container .dropdown-menu-group-title,
.excalidraw .Island.dropdown-menu-container div[data-testid="canvas-background-label"] {
margin: 0 !important;
}
/* Panels */ /* Panels */
.excalidraw .Island:not(.App-menu__left), .excalidraw .Island:not(.App-menu__left),