From c462385b91d77a416221d526b704c0429cf3bfb5 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Thu, 8 Jan 2026 15:08:26 +0100 Subject: [PATCH] change notifications div scroll behavior and max-height and add a call to update function on deleting a notification --- src/components/Header/Header.jsx | 1 + src/components/Header/Header.module.css | 3 +++ 2 files changed, 4 insertions(+) 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 {