fix hovercard title cursor flicker

This commit is contained in:
Neil
2026-07-02 02:48:49 -07:00
parent 6897205385
commit 67ec6cc8a9
2 changed files with 3 additions and 2 deletions
@@ -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}
@@ -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')
})