fix(ui): keep one continuous background behind titlebar
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped

Drop the separate glass strip on the titlebar; page backdrop and gradients now run continuously behind it, with a soft scrim only over scrolling content and the home hero.
This commit is contained in:
1xDed committed 2026-12-03 10:27:35 +03:00
1 parent 4bd884ebd1
commit 80ebe77fbc
2 files changed
+15 -27

No files matched your search

+14 -26
View File
@@ -32,22 +32,21 @@ html:not(.has-app-titlebar) {
background: transparent;
isolation: isolate;
/* Two layers that cross-fade: the glass surface and the soft gradient used
while the titlebar floats over the home hero. No hard border between the
bar and the page. */
&::before,
/* The page background stays continuous through the titlebar. Only a soft
scrim appears over scrolling content (and over the home hero) so the
controls remain readable without drawing a second glass panel. */
&::after {
content: "";
position: absolute;
inset: 0;
inset: 0 0 -14px;
z-index: -1;
pointer-events: none;
}
&::before {
inset: 0 0 -14px;
background: rgb(12 13 18 / 0.74);
backdrop-filter: blur(24px) saturate(170%);
background: linear-gradient(
180deg,
rgb(8 7 16 / 0.62) 0%,
rgb(8 7 16 / 0.28) 62%,
transparent 100%
);
mask-image: linear-gradient(
to bottom,
#000 calc(100% - 14px),
@@ -58,21 +57,14 @@ html:not(.has-app-titlebar) {
#000 calc(100% - 14px),
transparent 100%
);
opacity: 1;
opacity: 0;
transition: opacity 360ms cubic-bezier(0.33, 1, 0.68, 1);
will-change: opacity;
}
&::after {
background: linear-gradient(
180deg,
rgb(0 0 0 / 0.58) 0%,
rgb(0 0 0 / 0.24) 62%,
transparent 100%
);
opacity: 0;
transition: opacity 360ms cubic-bezier(0.33, 1, 0.68, 1);
will-change: opacity;
&--overlay::after,
&--scrolled::after {
opacity: 1;
}
html.is-macos & {
@@ -81,10 +73,6 @@ html:not(.has-app-titlebar) {
/* Home: transparent over the hero until the page starts scrolling. */
&--overlay {
&::before {
opacity: 0;
}
&::after {
opacity: 1;
}
+1 -1
View File
@@ -113,7 +113,7 @@ export const AppTitlebar = () => {
return (
<>
<header
className={`app-titlebar${overlay ? " app-titlebar--overlay" : ""}`}
className={`app-titlebar${overlay ? " app-titlebar--overlay" : ""}${scrolled ? " app-titlebar--scrolled" : ""}`}
data-tauri-drag-region
>
<div className="app-titlebar-top">