From d48479ee5bd3743bd224469daedc0b6a356a903b Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Tue, 24 Mar 2026 21:45:26 +0100 Subject: [PATCH] fix: add open/close animation to NotificationCenter dropdown Match AppLauncher & UserMenu Framer Motion treatment: opacity + scale + y-offset with 0.15s transition --- .../notifications/NotificationCenter.tsx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/components/notifications/NotificationCenter.tsx b/components/notifications/NotificationCenter.tsx index c63a734..749979c 100644 --- a/components/notifications/NotificationCenter.tsx +++ b/components/notifications/NotificationCenter.tsx @@ -6,6 +6,7 @@ import { useEffect, useState, useRef, useCallback } from 'react' import { createPortal } from 'react-dom' +import { motion, AnimatePresence } from 'framer-motion' import Link from 'next/link' import { listNotifications, markNotificationRead, markAllNotificationsRead, type Notification } from '@/lib/api/notifications' import { getAuthErrorMessage } from '@ciphera-net/ui' @@ -198,12 +199,18 @@ export default function NotificationCenter({ anchor = 'bottom', variant = 'defau {(() => { - const panel = open ? ( -
+ {open && ( +