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);