smooth scrolls throughout

This commit is contained in:
overcuriousity
2025-07-27 17:44:21 +02:00
parent 0adabad94d
commit c4faadf48e
3 changed files with 4 additions and 6 deletions

View File

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