From d8403da4bf6255889cc4a506d6e17ee8a6419380 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sat, 30 May 2026 11:47:48 -0700 Subject: [PATCH] fix: restore right sidebar titlebar dragging (#3526) Co-authored-by: Orca --- .../right-sidebar/activity-bar-buttons.tsx | 9 +- .../src/components/right-sidebar/index.tsx | 72 ++++--- ...ebar-titlebar-drag-regions.render.test.tsx | 191 ++++++++++++++++++ ...ight-sidebar-titlebar-drag-regions.test.ts | 21 ++ .../right-sidebar-titlebar-drag-regions.ts | 9 + .../WorktreeList.lineage-child-card.test.ts | 4 + 6 files changed, 279 insertions(+), 27 deletions(-) create mode 100644 src/renderer/src/components/right-sidebar/right-sidebar-titlebar-drag-regions.render.test.tsx create mode 100644 src/renderer/src/components/right-sidebar/right-sidebar-titlebar-drag-regions.test.ts create mode 100644 src/renderer/src/components/right-sidebar/right-sidebar-titlebar-drag-regions.ts diff --git a/src/renderer/src/components/right-sidebar/activity-bar-buttons.tsx b/src/renderer/src/components/right-sidebar/activity-bar-buttons.tsx index 69d04ce2e..672d829e1 100644 --- a/src/renderer/src/components/right-sidebar/activity-bar-buttons.tsx +++ b/src/renderer/src/components/right-sidebar/activity-bar-buttons.tsx @@ -4,6 +4,7 @@ import type { RightSidebarTab } from '@/store/slices/editor' import type { CheckStatus } from '../../../../shared/types' import { cn } from '@/lib/utils' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' +import { RIGHT_SIDEBAR_HEADER_NO_DRAG_CLASS_NAME } from './right-sidebar-titlebar-drag-regions' import { DropdownMenu, DropdownMenuContent, @@ -51,7 +52,10 @@ export function TopActivityOverflowMenu({