From 81b2d2d668f55fcd3049c64a6ab31b446fc7c93a Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Thu, 10 Sep 2026 10:35:06 +0100 Subject: [PATCH] web/components: fix gaps in diffview Signed-off-by: oppiliappan --- web/src/lib/components/repo/DiffView.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/lib/components/repo/DiffView.svelte b/web/src/lib/components/repo/DiffView.svelte index 8bcc42307..28cd25166 100644 --- a/web/src/lib/components/repo/DiffView.svelte +++ b/web/src/lib/components/repo/DiffView.svelte @@ -90,10 +90,10 @@ let shell = $state(); let dock = $state(0); let diffScroll = $state(0); - const GAP = 16; - const stickyTop = $derived(stickyOffset ? stickyOffset + GAP : 0); - const maxHeight = $derived(stickyTop ? `calc(100svh - ${stickyTop + GAP}px)` : "100svh"); - const dockOffset = $derived(stickyTop || GAP); + const HEADER_GAP = 8; + const stickyTop = $derived(stickyOffset ? stickyOffset + HEADER_GAP : 0); + const maxHeight = $derived(`calc(100svh - ${stickyTop}px)`); + const dockOffset = $derived(stickyTop); const measureDock = () => { if (!shell) return; dock = window.scrollY + shell.getBoundingClientRect().top - dockOffset; -- 2.51.2