Better blur effect in sidebar

This commit is contained in:
Dustin Brett
2025-06-13 23:14:45 -07:00
parent 61d287cf12
commit 2ab1000528
5 changed files with 18 additions and 20 deletions

View File

@@ -42,7 +42,10 @@ const Sidebar: FC<SidebarProps> = ({ height }) => {
const expandTimer = useRef(0);
const sidebarRef = useRef<HTMLElement>(null);
const clearTimer = (): void => {
if (expandTimer.current) clearTimeout(expandTimer.current);
if (expandTimer.current) {
clearTimeout(expandTimer.current);
expandTimer.current = 0;
}
};
const topButtons: SidebarButtons = useMemo(
() => [