diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index 9f7046f..98f502e 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -90,6 +90,7 @@ function Header() { const result = await deleteNotificationUser(notificationId); if (result) { setNotifications(prev => prev.filter(n => n.id !== notificationId)); + update(); } } catch (err) { console.error('Erreur suppression notification :', err); diff --git a/src/components/Header/Header.module.css b/src/components/Header/Header.module.css index eac6e90..e684823 100644 --- a/src/components/Header/Header.module.css +++ b/src/components/Header/Header.module.css @@ -157,6 +157,9 @@ transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; z-index: 0; + max-height: 60vh; + overflow: scroll; + scrollbar-width: none; } .activeNotificationDiv {