fix: buttons not working

This commit is contained in:
2025-11-10 12:00:15 +01:00
parent f1d5d6bfee
commit 4c3c4afe27
3 changed files with 68 additions and 46 deletions

View File

@@ -43,17 +43,14 @@ const DashboardView = ({
return;
}
row.scrollIntoView({ behavior: 'smooth', block: 'center' });
row.classList.add('ring-4', 'ring-blue-400', 'bg-blue-50', 'transition');
row.style.transition = 'background-color 0.8s ease, box-shadow 0.8s ease';
row.classList.add('dashboard-row-highlight', 'ring-4', 'ring-blue-400');
const timeout = setTimeout(() => {
row.classList.remove('ring-4', 'ring-blue-400');
row.style.backgroundColor = 'transparent';
setTimeout(onClearFocus, 600);
}, 2200);
row.classList.remove('dashboard-row-highlight', 'ring-4', 'ring-blue-400');
onClearFocus();
}, 2500);
return () => {
clearTimeout(timeout);
row.classList.remove('ring-4', 'ring-blue-400');
row.style.backgroundColor = 'transparent';
row.classList.remove('dashboard-row-highlight', 'ring-4', 'ring-blue-400');
};
}, [focusedStoreId, onClearFocus]);
const {