From 3ba8390e4bc08f5bf6f674c308cecb72466b1140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Fri, 3 Oct 2025 18:46:13 +0200 Subject: feat(frontend): scroll to body top instead of body top --- frontend/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/index.ts') diff --git a/frontend/index.ts b/frontend/index.ts index cd3c455..316caaf 100644 --- a/frontend/index.ts +++ b/frontend/index.ts @@ -10,7 +10,7 @@ function setupAnchors() { e.setAttribute("hx-get", e.href) e.setAttribute("hx-trigger", "click") e.setAttribute("hx-target", "#content") - e.setAttribute("hx-swap", "outerHTML show:top") + e.setAttribute("hx-swap", "outerHTML show:body:top") htmx.process(e) }); } -- cgit v1.2.3