@@ -21,7 +21,7 @@ import {
2121} from "@/features/sidebar/lib/channelSortPreference" ;
2222import { useChannelSortPreference } from "@/features/sidebar/lib/useChannelSortPreference" ;
2323import { useSidebarScrollLock } from "@/features/sidebar/lib/useSidebarScrollLock" ;
24- import { isInteractiveSidebarTarget } from "@/features/sidebar/lib/sidebarBackgroundTarget" ;
24+ import { isSidebarBackgroundTarget } from "@/features/sidebar/lib/sidebarBackgroundTarget" ;
2525import { useUnreadOverflow } from "@/features/sidebar/lib/useUnreadOverflow" ;
2626import {
2727 CreateSectionDialog ,
@@ -554,14 +554,15 @@ export function AppSidebar({
554554 collapsible = "offcanvas"
555555 data-testid = "app-sidebar"
556556 onClick = { ( event ) => {
557- if ( ! isInteractiveSidebarTarget ( event . target ) ) {
557+ if ( isSidebarBackgroundTarget ( event . target ) ) {
558558 onBackgroundClick ?.( ) ;
559559 }
560560 } }
561561 variant = "sidebar"
562562 >
563563 < div
564564 className = "relative flex min-h-0 flex-1 flex-col overflow-hidden"
565+ data-sidebar-background
565566 data-testid = "app-sidebar-scroll-anchor"
566567 >
567568 < AppSidebarPinnedHeader
@@ -580,6 +581,7 @@ export function AppSidebar({
580581
581582 < div
582583 className = "relative flex min-h-0 flex-1 flex-col"
584+ data-sidebar-background
583585 data-testid = "sidebar-channel-content"
584586 >
585587 { unreadAboveCount > 0 ? (
@@ -593,10 +595,12 @@ export function AppSidebar({
593595
594596 < SidebarContent
595597 className = "buzz-sidebar-scrollbar overscroll-none"
598+ data-sidebar-background
596599 ref = { scrollRef }
597600 >
598601 < div
599602 className = "flex w-full flex-col gap-2 px-[3px]"
603+ data-sidebar-background
600604 data-testid = "sidebar-scroll-content"
601605 >
602606 < AppSidebarPrimaryMenu
0 commit comments