diff --git a/src/components/TargetedScenarios.astro b/src/components/TargetedScenarios.astro index a3c6282..159bb06 100644 --- a/src/components/TargetedScenarios.astro +++ b/src/components/TargetedScenarios.astro @@ -169,12 +169,10 @@ const displayedScenarios = scenarios.slice(0, maxDisplayed); targetedInput.addEventListener('keydown', (e) => { if (e.key === 'Enter') { e.preventDefault(); - // Switch to grid view and scroll to results const gridToggle = document.querySelector('.view-toggle[data-view="grid"]'); if (gridToggle) { gridToggle.click(); - // Use consolidated scroll utility - window.scrollToElementById('tools-grid'); + setTimeout(() => window.scrollToElementById('tools-grid'), 200); } } }); diff --git a/src/pages/index.astro b/src/pages/index.astro index d63309f..7b5d0c4 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -92,7 +92,7 @@ const phases = data.phases; Beitragen - +