style/zen mode: disable translucency for the title bar when backdrop effects are turned off

This commit is contained in:
Adorian Doran 2025-11-03 15:59:34 +02:00
parent 55f7a26634
commit 3ae7bd59ec

View File

@ -2117,7 +2117,7 @@ body.zen .note-split.type-text {
font-size: 1.15em; font-size: 1.15em;
} }
body.zen .note-split.type-text .title-row { body.zen:not(.backdrop-effects-disabled) .note-split.type-text .title-row {
--start-color: var(--main-background-color); --start-color: var(--main-background-color);
position: absolute; position: absolute;
@ -2133,13 +2133,17 @@ body.zen .note-split.type-text .title-row {
} }
body.zen .note-split.type-text .scrolling-container { body.zen .note-split.type-text .scrolling-container {
--padding-top: 50px; /* Should be enough to cover the title row */
--padding-bottom: 130px; /* Should be enough to avoid caret being hidden by the formatting toolbar */ --padding-bottom: 130px; /* Should be enough to avoid caret being hidden by the formatting toolbar */
/* (Usually) keeps the caret above the fixed toolbar */ /* (Usually) keeps the caret above the fixed toolbar */
scroll-padding-bottom: var(--padding-bottom);
}
body.zen:not(.backdrop-effects-disabled) .note-split.type-text .scrolling-container {
--padding-top: 50px; /* Should be enough to cover the title row */
padding-top: var(--padding-top); padding-top: var(--padding-top);
scroll-padding-top: var(--padding-top); scroll-padding-top: var(--padding-top);
scroll-padding-bottom: var(--padding-bottom);
} }
/* Fixed formatting toolbar */ /* Fixed formatting toolbar */