From e9aa37d049ed6ec9a72e1967138c5279a4b2eb4f Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 15 Oct 2025 19:10:03 +0300 Subject: [PATCH] style/canvas: tweak the header region of the UI --- .../stylesheets/theme-next/notes/canvas.css | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/apps/client/src/stylesheets/theme-next/notes/canvas.css b/apps/client/src/stylesheets/theme-next/notes/canvas.css index de7aa1173..7f770fab9 100644 --- a/apps/client/src/stylesheets/theme-next/notes/canvas.css +++ b/apps/client/src/stylesheets/theme-next/notes/canvas.css @@ -26,7 +26,7 @@ } :root .type-canvas { - --floating-buttons-vert-offset: 48px; + --floating-buttons-vert-offset: 20px; } /* Context menus */ @@ -95,6 +95,17 @@ margin: 0 !important; } +/* Header */ + +.excalidraw .App-menu.App-menu_top { + align-items: center; +} + +/* The parent element of the "Library" button */ +.excalidraw .App-menu.App-menu_top > div:nth-child(3) { + flex-direction: row-reverse; +} + /* Panels */ .excalidraw .Island:not(.App-menu__left), @@ -175,4 +186,11 @@ body[dir=ltr] .excalidraw .exc-stats { body[dir=ltr] .excalidraw .exc-stats { right: 0; +} + +/* Sidebar */ + +.split-note-container-widget > .component.type-canvas:has(.excalidraw-container > .Island.default-sidebar) > .floating-buttons { + /* Hide the floating buttons when the sidebar is open */ + display: none; } \ No newline at end of file