From 331f25ac174ed93b9933ca9030bc61023f332db6 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 3 Jan 2026 12:41:50 -0500 Subject: [PATCH] fix: Hover state is lost on sidebar items when context menu is open (#11054) * fix: Unread badge position * fix: Hover state with active context menu --- app/components/Notifications/NotificationListItem.tsx | 2 +- app/components/Sidebar/components/SidebarLink.tsx | 6 +++--- app/components/UnreadBadge.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/Notifications/NotificationListItem.tsx b/app/components/Notifications/NotificationListItem.tsx index f8cb05fc5d..5f2da58edd 100644 --- a/app/components/Notifications/NotificationListItem.tsx +++ b/app/components/Notifications/NotificationListItem.tsx @@ -87,7 +87,7 @@ function NotificationListItem({ notification, onNavigate }: Props) { /> )} - {notification.viewedAt ? null : } + {notification.viewedAt ? null : } diff --git a/app/components/Sidebar/components/SidebarLink.tsx b/app/components/Sidebar/components/SidebarLink.tsx index ed9b327453..a6e3a561f5 100644 --- a/app/components/Sidebar/components/SidebarLink.tsx +++ b/app/components/Sidebar/components/SidebarLink.tsx @@ -107,7 +107,7 @@ function SidebarLink( const unreadStyle = React.useMemo( () => ({ - right: -12, + right: -20, }), [] ); @@ -165,7 +165,6 @@ function SidebarLink( ref={ref} {...rest} > - {" "} {hasDisclosure && ( @@ -243,7 +242,8 @@ const Link = styled(NavLink)<{ $disabled?: boolean; }>` &:hover, - &:active { + &:active, + &:has([data-state="open"]) { --background: ${s("sidebarHoverBackground")}; } diff --git a/app/components/UnreadBadge.tsx b/app/components/UnreadBadge.tsx index 5cf1ba8819..4b110ffb20 100644 --- a/app/components/UnreadBadge.tsx +++ b/app/components/UnreadBadge.tsx @@ -8,5 +8,5 @@ export const UnreadBadge = styled.div` border-radius: 8px; align-self: center; position: absolute; - right: 4px; + right: 12px; `;