From e3663721830d79df6562a0b3ef78c8fe6bc1b7c3 Mon Sep 17 00:00:00 2001 From: Tyler <109685178+tlongwell-block@users.noreply.github.com> Date: Thu, 25 Jun 2026 12:21:22 -0400 Subject: [PATCH] fix(desktop): DM close button replaces unread badge on hover (#1280) Signed-off-by: Tyler Longwell Co-authored-by: Eva Co-authored-by: Tyler Longwell --- desktop/src/features/sidebar/ui/SidebarSection.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/src/features/sidebar/ui/SidebarSection.tsx b/desktop/src/features/sidebar/ui/SidebarSection.tsx index 1ceba1720..e1ee47d99 100644 --- a/desktop/src/features/sidebar/ui/SidebarSection.tsx +++ b/desktop/src/features/sidebar/ui/SidebarSection.tsx @@ -40,6 +40,8 @@ const SECTION_LABEL_CHEVRON_ICON_CLASS = "absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2"; const SIDEBAR_ROW_ACTION_VISIBILITY_CLASS = "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 md:opacity-0"; +const SIDEBAR_ROW_ACTION_REPLACED_BADGE_CLASS = + "max-md:opacity-0 md:group-focus-within/menu-item:opacity-0 md:group-hover/menu-item:opacity-0"; const SIDEBAR_ROW_ICON_ACTION_CLASS = "flex size-6 items-center justify-center p-1 text-sidebar-foreground/45 transition-colors hover:text-sidebar-foreground focus-visible:text-sidebar-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-sidebar-ring peer-data-[active=true]/menu-button:text-sidebar-active-foreground/75 peer-data-[active=true]/menu-button:hover:text-sidebar-active-foreground [&>svg]:size-4 [&>svg]:shrink-0"; @@ -376,7 +378,10 @@ export function SidebarSection({ !(isActiveChannel && selectedChannelId === channel.id) ? (