Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/canvas: remove the "Library" and "Help" buttons from the canvas surface

Adorian Dorana00b64dd31e4
diff --git a/apps/client/src/widgets/type_widgets/canvas/CanvasDrawing.css b/apps/client/src/widgets/type_widgets/canvas/CanvasDrawing.css
index 250adba24a..a757b06d46 100644
--- a/apps/client/src/widgets/type_widgets/canvas/CanvasDrawing.css
+++ b/apps/client/src/widgets/type_widgets/canvas/CanvasDrawing.css
@@ -37,24 +37,9 @@
background: none;
}
- /* The Library button follows the menu button, in the first column of the top bar. */
- .excalidraw .App-menu.App-menu_top {
- > .App-menu_top__left,
- > .layer-ui__wrapper__top-right {
- grid-row: 1;
- grid-column: 1;
- }
-
- > .shapes-section {
- grid-row: 1;
- grid-column: 2;
- }
-
- > .layer-ui__wrapper__top-right {
- flex-direction: row;
- justify-content: flex-start;
- padding-inline-start: calc(var(--lg-button-size) + 0.5rem);
- }
+ /* The main menu offers the library and help. */
+ .excalidraw :is(.sidebar-trigger, .help-icon) {
+ display: none;
}
/* The properties panel spans the height of the canvas. */
@@ -70,11 +55,6 @@
top: calc(var(--lg-button-size) + 1rem);
}
- /* The help button is in the corner that the properties panel covers. */
- .excalidraw:has(.App-menu__left) .layer-ui__wrapper__footer-right {
- visibility: hidden;
- }
-
/* Matches the 1rem of the icons of Excalidraw's own menu items. */
.dropdown-menu-item__icon > .tn-icon {
display: block;
@@ -103,10 +83,6 @@
max-height: var(--side-panel-max-height) !important;
color: inherit;
}
-
- .layer-ui__wrapper__footer-right {
- visibility: inherit;
- }
}
/* The tools, undo and redo, and zoom are buttons of the embed's toolbar, which fullscreen hides.