@@ -13,8 +13,6 @@ import { NotificationItem } from "./notificationitem";
1313import { useUpdateNotifier } from "./updatenotifier" ;
1414import { useNotification } from "./usenotification" ;
1515
16- import "./notificationpopover.scss" ;
17-
1816const NotificationPopover = ( ) => {
1917 useUpdateNotifier ( ) ;
2018 const {
@@ -51,14 +49,14 @@ const NotificationPopover = () => {
5149
5250 return (
5351 < Popover
54- className = "notification-popover "
52+ className = "w-full pb-2 pt-1 pl-0 pr-0.5 flex items-center justify-center "
5553 placement = "left-end"
5654 offset = { { mainAxis : 20 , crossAxis : 2 } }
5755 onDismiss = { handleTogglePopover }
5856 >
5957 < PopoverButton
6058 className = { clsx (
61- "notification-trigger-button horizontal-padding-6 vertical-padding-4 border-radius-" ,
59+ "w-[27px] h-[26px] flex justify-center [&>i]:text-[17px] horizontal-padding-6 vertical-padding-4 border-radius-" ,
6260 addOnClassNames
6361 ) }
6462 disabled = { notifications . length === 0 }
@@ -67,11 +65,11 @@ const NotificationPopover = () => {
6765 { getIcon ( ) }
6866 </ PopoverButton >
6967 { notifications . length > 0 && (
70- < PopoverContent className = "notification-content " >
71- < div className = "header " >
72- < span > Notifications</ span >
68+ < PopoverContent className = "flex w-[380px] pt-2.5 pb-0 px-0 flex-col items-start gap-x-2 rounded-lg border-[0.5px] border-white/12 bg-[#232323] shadow-[0px_8px_32px_0px_rgba(0,0,0,0.25)] " >
69+ < div className = "flex items-center justify-between w-full px-2.5 pb-2 border-b border-white/8 " >
70+ < span className = "text-foreground text-sm font-semibold leading-4" > Notifications</ span >
7371 < Button
74- className = "ghost grey close-all-btn horizontal-padding-3 vertical-padding-3"
72+ className = "ghost grey text-[13px] font-normal leading-4 text-white/40 horizontal-padding-3 vertical-padding-3"
7573 onClick = { ( e ) => {
7674 e . stopPropagation ( ) ;
7775 removeAllNotifications ( ) ;
@@ -98,7 +96,7 @@ const NotificationPopover = () => {
9896 onMouseEnter = { ( ) => setHoveredId ( notif . id ) }
9997 onMouseLeave = { ( ) => setHoveredId ( null ) }
10098 />
101- { index !== notifications . length - 1 && < div className = "divider " > </ div > }
99+ { index !== notifications . length - 1 && < div className = "bg-white/8 h-px w-full " > </ div > }
102100 </ Fragment >
103101 ) ) }
104102 </ OverlayScrollbarsComponent >
0 commit comments