mirror of
https://github.com/stablyai/orca.git
synced 2026-10-16 16:03:26 +00:00
fix hovercard title cursor flicker
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user