update notifications css

This commit is contained in:
Giovanni committed 2026-01-11 20:05:20 +01:00
1 parent c906cb733e
commit b0d7d3c0af
6 files changed
+98 -22

No files matched your search

+3 -11
View File
@@ -11,6 +11,8 @@ import readNotifications from "../../utils/notifications/readNotifications.js";
import getUser from "../../utils/getUser.js";
import { userCreatedListener } from "../../utils/echo/listeners/userCreatedListener";
import { userNotificationsListener } from "../../utils/echo/listeners/userNotificationsListener.js";
import NotificationCard from "../NotificationCard/NotificationCard.jsx";
@@ -176,17 +178,7 @@ function Header() {
{notifications.length === 0 ? (
<p className={styles.notification}>Vous n'avez aucune notification !</p>
) : (
notifications.map((notification, index) => (
<div className={styles.notification} key={index}>
<p>{notification.content}</p>
<button
className={styles.closeBtn}
onClick={() => deleteNotification(notification.id)}
>
<img src="close.svg" alt="supprimer la notification"/>
</button>
</div>
))
<NotificationCard notifications={notifications} deleteNotification={deleteNotification} />
)}
</div>
</div>
+1 -11
View File
@@ -150,7 +150,7 @@
.notificationDiv {
position: absolute;
width: 250px;
width: 300px;
top: 105%;
right: 2rem;
opacity: 0;
@@ -186,16 +186,6 @@
border-radius: 50%;
}
.closeBtn {
display: flex;
align-items: center;
justify-content: center;
border: none;
cursor: pointer;
background: none;
margin: 0;
width: fit-content;
}
.closeBtn:focus {
outline: none;