Skip to content

Build your personal knowledge base with Trilium Notes

fix(canvas): stop embedded-note dropdowns blurring the canvas

Elian Doran1a61dbc5831a
diff --git a/apps/client/src/widgets/type_widgets/canvas/NoteEmbeddable.css b/apps/client/src/widgets/type_widgets/canvas/NoteEmbeddable.css
index 7963cecbe0..431d332268 100644
--- a/apps/client/src/widgets/type_widgets/canvas/NoteEmbeddable.css
+++ b/apps/client/src/widgets/type_widgets/canvas/NoteEmbeddable.css
@@ -6,3 +6,13 @@
background-color: var(--main-background-color);
color: var(--main-text-color);
}
+
+/* Excalidraw uses the same `.dropdown-menu` class for its own (conditionally rendered) menus, so its
+ styles assume the element is absent when closed and never apply a hidden state. An embedded note's
+ Bootstrap dropdowns (e.g. a geo map's view switcher) are always in the DOM and hide via Bootstrap's
+ `.dropdown-menu { display: none }` when they lack `.show` — but inside `.excalidraw` that collision
+ leaves a closed menu displayed, and its backdrop-filter shows as a blurry band over the embed.
+ Restore the hidden state, scoped to embedded note content so Excalidraw's own dropdowns are untouched. */
+.canvas-note-embeddable .dropdown-menu:not(.show) {
+ display: none;
+}