fix: use button for editable project title on header

This commit is contained in:
Kha Nguyen 2025-07-23 17:27:44 -05:00
parent 1504b4f60c
commit b8671eb761
1 changed files with 3 additions and 3 deletions

View File

@ -85,10 +85,10 @@ export function EditorHeader() {
autoFocus
/>
) : (
<span
<Button
className="text-sm font-medium cursor-pointer hover:text-muted-foreground flex items-center gap-2 group"
title="Click to rename"
role="button"
variant="text"
tabIndex={0}
onClick={handleNameEdit}
>
@ -96,7 +96,7 @@ export function EditorHeader() {
{activeProject?.name}
</div>
<SquarePen className="w-3 h-3 opacity-0 group-hover:opacity-100 transition-opacity" />
</span>
</Button>
)}
</BreadcrumbItem>
</BreadcrumbList>