Skip to content

Build your personal knowledge base with Trilium Notes

fix(setup): keep untitled desktop errors out of the title bar band

Elian Doranb2b01ba7ad64
diff --git a/apps/client/src/setup.css b/apps/client/src/setup.css
index 34c8869410..bff1e230a0 100644
--- a/apps/client/src/setup.css
+++ b/apps/client/src/setup.css
@@ -400,6 +400,19 @@ body.setup.electron {
transform: translateY(-50%);
-webkit-app-region: no-drag;
}
+
+ /* Without a header, the content starts below the band and the banner stays under
+ `.drag-region`, so the band still drags the window. */
+ &.no-title {
+ z-index: 1;
+ padding-top: calc(env(titlebar-area-height, 40px) + 1em);
+
+ button {
+ top: calc(env(titlebar-area-height, 40px) + 0.5em);
+ right: 0.5em;
+ transform: none;
+ }
+ }
}
}