Sidebar redesign, dropdown fixes, and soft-delete UI #57

Merged
uz1mani merged 50 commits from staging into main 2026-03-19 00:08:16 +00:00
15 changed files with 1806 additions and 432 deletions
Showing only changes of commit a31f183b7b - Show all commits

View File

@@ -104,6 +104,13 @@ export default function NotificationCenter({ anchor = 'bottom', variant = 'defau
} }
}, [open, updatePosition]) }, [open, updatePosition])
// Recalculate position after content changes (notifications load, loading state)
useEffect(() => {
if (open && anchor === 'right') {
requestAnimationFrame(() => updatePosition())
}
}, [notifications, loading, open, anchor, updatePosition])
// * Poll unread count in background (when authenticated) // * Poll unread count in background (when authenticated)
useEffect(() => { useEffect(() => {
fetchUnreadCount() fetchUnreadCount()