Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(canvas): keep the main menu above Excalidraw's toolbar on mobile
Elian Doran6884ea13275b
diff --git a/apps/client/src/stylesheets/menus.css b/apps/client/src/stylesheets/menus.cssindex ac925e2c50..ba5edfdd28 100644--- a/apps/client/src/stylesheets/menus.css+++ b/apps/client/src/stylesheets/menus.css@@ -195,7 +195,7 @@ body.mobile #context-menu-container.mobile-bottom-menu {padding-bottom: max(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)), var(--padding, var(--menu-padding-size))) !important;}-body.mobile .dropdown-menu {+body.mobile .dropdown-menu:not(.excalidraw *) {position: fixed !important;z-index: 3000 !important;}diff --git a/apps/client/src/widgets/type_widgets/canvas/Canvas.css b/apps/client/src/widgets/type_widgets/canvas/Canvas.cssindex a046edd8f3..21618659f7 100644--- a/apps/client/src/widgets/type_widgets/canvas/Canvas.css+++ b/apps/client/src/widgets/type_widgets/canvas/Canvas.css@@ -13,6 +13,11 @@display: block;}+/* Outranks `body.mobile .dropdown-menu` in theme-next/menus.css, which makes it relative. */+.excalidraw-wrapper .excalidraw .dropdown-menu {+ position: absolute;+}+/* Excalidraw pads its toolbars by these insets, which it reads from `env()` on `:root`.`#root-widget` and `#mobile-bottom-bar` already keep clear of the top and bottom insets. */.excalidraw-wrapper {