fix: buttons not working

This commit is contained in:
2025-11-10 11:46:26 +01:00
parent a501bb0ca1
commit f1d5d6bfee
2 changed files with 21 additions and 13 deletions

View File

@@ -43,14 +43,17 @@ const DashboardView = ({
return;
}
row.scrollIntoView({ behavior: 'smooth', block: 'center' });
row.classList.add('ring-2', 'ring-blue-400', 'bg-yellow-100');
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';
const timeout = setTimeout(() => {
row.classList.remove('ring-2', 'ring-blue-400', 'bg-yellow-100');
onClearFocus();
}, 3000);
row.classList.remove('ring-4', 'ring-blue-400');
row.style.backgroundColor = 'transparent';
setTimeout(onClearFocus, 600);
}, 2200);
return () => {
clearTimeout(timeout);
row.classList.remove('ring-2', 'ring-blue-400', 'bg-yellow-100');
row.classList.remove('ring-4', 'ring-blue-400');
row.style.backgroundColor = 'transparent';
};
}, [focusedStoreId, onClearFocus]);
const {