From 85ba3747b13cbbc712c11908b132017fe9836ddf Mon Sep 17 00:00:00 2001 From: Mischa Date: Sun, 21 Jun 2026 20:36:46 +0200 Subject: [PATCH] fix(scroll): use block:start so scroll-margin-top is respected block:center ignores scroll-margin-top. block:start positions the entry's top edge at the margin offset, clearing the sticky header. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr --- themes/intotheeast/templates/trip.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index 231d9d7..4ad1404 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -346,7 +346,7 @@ tripMap.on('load', function () { el.addEventListener('click', function () { var card = document.getElementById('entry-' + entry.slug); if (!card) return; - card.scrollIntoView({ behavior: 'smooth', block: 'center' }); + card.scrollIntoView({ behavior: 'smooth', block: 'start' }); setTimeout(function () { card.classList.add('is-highlighted'); setTimeout(function () { card.classList.remove('is-highlighted'); }, 700);