From 10435c49bbd7f6b49e73869d77e2f408f3c668a5 Mon Sep 17 00:00:00 2001 From: Sebastian Gieseler Date: Wed, 21 Oct 2026 18:43:51 +0200 Subject: [PATCH] fix(ui): the top bar's border no longer makes the page scroll by a pixel The header was --topbar-h plus its 1px border tall, while the sticky sidebar is 100vh - --topbar-h. The page came out one pixel taller than the window and scrolled. The header now has the height, border included. Co-Authored-By: Claude Opus 5.5 --- ui/src/components/TopBar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/components/TopBar.vue b/ui/src/components/TopBar.vue index d15b65b4..2c5960d7 100644 --- a/ui/src/components/TopBar.vue +++ b/ui/src/components/TopBar.vue @@ -171,9 +171,12 @@ const mismatch = computed(() => { background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); + /* The border counts: the sticky parts below it are `100vh - --topbar-h` + tall, and one pixel more here made the page scroll by one. */ + height: var(--topbar-h); } .topbar-inner { - height: var(--topbar-h); + height: 100%; display: flex; align-items: center; gap: 10px;