Skip to content

Build your personal knowledge base with Trilium Notes

style/zen mode: do not show an empty toolbar container when the toolbar is not actually available

Adorian Doran7b9303b392ab
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 6eaa5f61c8..5a132fa827 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2178,6 +2178,11 @@ body.zen .note-split .ribbon-container .classic-toolbar-widget {
background: var(--menu-background-color);
}
+body.zen .note-split .ribbon-container .classic-toolbar-widget:not(:has(> .ck-toolbar)) {
+ /* Hide the toolbar wrapper if the toolbar is missing */
+ display: none;
+}
+
body.zen .note-split:focus-within .ribbon-container .classic-toolbar-widget {
pointer-events: all;
}