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

This commit is contained in:
Adorian Doran 2025-11-09 19:35:47 +02:00
parent b905c1d03a
commit 7b9303b392

View File

@ -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;
}