From 67ec6cc8a90e2c4756a258a070558b3c4246247c Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Thu, 2 Jul 2026 02:48:49 -0700 Subject: [PATCH] fix hovercard title cursor flicker --- .../components/sidebar/WorktreeCardHoverIdentityHeader.tsx | 4 ++-- src/renderer/src/components/sidebar/WorktreeCardMeta.test.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/sidebar/WorktreeCardHoverIdentityHeader.tsx b/src/renderer/src/components/sidebar/WorktreeCardHoverIdentityHeader.tsx index 4339864a64b..613b37ba597 100644 --- a/src/renderer/src/components/sidebar/WorktreeCardHoverIdentityHeader.tsx +++ b/src/renderer/src/components/sidebar/WorktreeCardHoverIdentityHeader.tsx @@ -40,11 +40,11 @@ export function WorktreeCardHoverIdentityHeader({ editingPresentation="field" wrapTitle className={cn( - 'text-[13px] font-semibold leading-snug text-foreground', + 'cursor-text text-[13px] font-semibold leading-snug text-foreground', identityOrder === 'branch-first' && 'mt-1' )} editingClassName={cn( - '-mx-1.5 w-[calc(100%+0.75rem)] text-[13px] leading-snug', + '-mx-1.5 w-[calc(100%+0.75rem)] cursor-text text-[13px] leading-snug', identityOrder === 'branch-first' && 'mt-1' )} onEditingChange={onWorkspaceTitleEditingChange} diff --git a/src/renderer/src/components/sidebar/WorktreeCardMeta.test.tsx b/src/renderer/src/components/sidebar/WorktreeCardMeta.test.tsx index a358918c2e1..2098cce6e1b 100644 --- a/src/renderer/src/components/sidebar/WorktreeCardMeta.test.tsx +++ b/src/renderer/src/components/sidebar/WorktreeCardMeta.test.tsx @@ -106,6 +106,7 @@ describe('WorktreeCardDetailsHover', () => { expect(identityHeaderTag).not.toContain('border-l') expect(identityHeaderTag).not.toContain('pl-2') expect(markup).toContain('data-worktree-title-inline-rename=""') + expect(markup).toContain('cursor-text text-[13px] font-semibold') expect(markup).toContain('Fix stale GH PR') expect(markup).toContain('border-l border-border/70 pl-3') })