fix: mobile UI and other fixes (#10177)

* remove legacy openMenu=shape state and unused actions

* close menus/popups in applicable cases when opening a different one

* split ui z-indexes to account prefer different overlap

* make top canvas area clickable on mobile

* make mobile main menu closable by clicking outside and reduce width

* offset picker popups from viewport border on mobile

* reduce items gap in mobile main menu

* show top picks for canvas bg colors in all ui modes

* fix menu separator visibility on mobile

* fix command palette items not being filtered
This commit is contained in:
David Luzar
2025-10-14 16:34:49 +02:00
committed by GitHub
parent 8608d7b2e0
commit 5fffc4743f
19 changed files with 58 additions and 85 deletions
+13 -2
View File
@@ -12,6 +12,11 @@
--zIndex-eyeDropperPreview: 6;
--zIndex-hyperlinkContainer: 7;
--zIndex-ui-styles-popup: 40;
--zIndex-ui-bottom: 60;
--zIndex-ui-library: 80;
--zIndex-ui-top: 100;
--zIndex-modal: 1000;
--zIndex-popup: 1001;
--zIndex-toast: 999999;
@@ -237,7 +242,7 @@ body.excalidraw-cursor-resize * {
}
.App-top-bar {
z-index: var(--zIndex-layerUI);
z-index: var(--zIndex-ui-top);
display: flex;
flex-direction: column;
}
@@ -255,7 +260,7 @@ body.excalidraw-cursor-resize * {
left: 50%;
transform: translateX(-50%);
--bar-padding: calc(4 * var(--space-factor));
z-index: var(--zIndex-layerUI);
z-index: var(--zIndex-ui-bottom);
display: flex;
flex-direction: column;
@@ -296,6 +301,12 @@ body.excalidraw-cursor-resize * {
.App-toolbar-content {
display: flex;
flex-direction: column;
pointer-events: none;
& > * {
pointer-events: var(--ui-pointerEvents);
}
}
.App-mobile-menu {