From c99b755382df2fb97913729494a4aa753e719873 Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Fri, 10 Apr 2026 22:58:34 +0200 Subject: [PATCH] The culprit is in renderChart(): it calls chart?.remove() which empties the container div, causing the layout to collapse to zero height for a moment. The browser then scrolls to keep the viewport anchored, but since the page got shorter it jumps to the top. When the new SVG is appended, the page is taller again but the scroll position was already reset. Fix: give the chart container a min-height matching the chart height (220px) so it never collapses. --- site/src/components/ActivityCharts.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/ActivityCharts.svelte b/site/src/components/ActivityCharts.svelte index 6f07c5d..b80deec 100644 --- a/site/src/components/ActivityCharts.svelte +++ b/site/src/components/ActivityCharts.svelte @@ -347,7 +347,7 @@ -
+
{#if chartType === 'histogram'}