Skip to content

Build your personal knowledge base with Trilium Notes

style/canvas: fix arrowheads picker being improperly positioned

Adorian Doranbf537446092f
diff --git a/apps/client/src/stylesheets/theme-next/notes/canvas.css b/apps/client/src/stylesheets/theme-next/notes/canvas.css
index a7e2247203..d5fb27321d 100644
--- a/apps/client/src/stylesheets/theme-next/notes/canvas.css
+++ b/apps/client/src/stylesheets/theme-next/notes/canvas.css
@@ -188,12 +188,29 @@ body[dir=rtl] .excalidraw .Island.App-menu__left {
:root .App-menu__left > .panelColumn > fieldset,
:root .App-menu__left > .panelColumn > label,
:root .App-menu__left > .panelColumn > div:has(> *) {
+ position: relative;
margin: 0;
border-radius: 4px;
box-shadow: 1px 1px 1px var(--floating-button-shadow-color);
background: var(--floating-button-background-color);
padding: 8px 12px;
+}
+
+:root .App-menu__left > .panelColumn > fieldset::before,
+:root .App-menu__left > .panelColumn > label::before,
+:root .App-menu__left > .panelColumn > div:has(> *)::before {
+ /* backdrop: blur() creates a new stacking context that prevents some popovers like the
+ * arrowheads picker from being positioned correctly. To workaround this, the backdrop blur
+ * effect is applyed using a pseudo-element instead. */
+ display: block;
+ position: absolute;
+ content: "";
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
backdrop-filter: blur(10px) saturate(6);
+ z-index: -1;
}
/* Options panel card title */