aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-03 18:46:13 +0200
committerWilliam Hergès <william@herges.fr>2025-10-03 18:46:13 +0200
commit3ba8390e4bc08f5bf6f674c308cecb72466b1140 (patch)
tree67a8308a3e592a071b7212926e32f44c7ab116ff /frontend
parent0de89e6bc6a467b2cc4261ae65464f40119cc0ff (diff)
feat(frontend): scroll to body top instead of body top
Diffstat (limited to 'frontend')
-rw-r--r--frontend/index.ts2
-rw-r--r--frontend/scss/home.scss3
2 files changed, 2 insertions, 3 deletions
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)
});
}
diff --git a/frontend/scss/home.scss b/frontend/scss/home.scss
index 0b85b2b..6fa4192 100644
--- a/frontend/scss/home.scss
+++ b/frontend/scss/home.scss
@@ -14,8 +14,7 @@ article article {
align-items: center;
justify-content: center;
-
- & > div {
+ & nav {
display: inline-grid;
grid-template-columns: 2fr 1fr 2fr;
justify-content: center;