Skip to content

Commit 26c3095

Browse files
committed
Refactor user profile button in AppHeader for improved styling and accessibility
1 parent fceff58 commit 26c3095

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

apps/console/src/components/AppHeader.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
ChevronDown,
2727
Settings,
2828
LogOut,
29-
ChevronsUpDown,
3029
User as UserIcon,
3130
Boxes,
3231
} from 'lucide-react';
@@ -329,15 +328,13 @@ export function AppHeader({
329328
{/* User Profile */}
330329
<DropdownMenu>
331330
<DropdownMenuTrigger asChild>
332-
<Button variant="ghost" className="h-8 gap-1.5 px-1.5 shrink-0">
333-
<Avatar className="h-6 w-6 rounded-md">
331+
<Button variant="ghost" size="icon" className="h-8 w-8 shrink-0 rounded-full">
332+
<Avatar className="h-7 w-7 rounded-full">
334333
<AvatarImage src={user?.image ?? '/avatars/user.jpg'} alt={user?.name ?? 'User'} />
335-
<AvatarFallback className="rounded-md bg-primary text-primary-foreground text-xs">
334+
<AvatarFallback className="rounded-full bg-primary text-primary-foreground text-xs">
336335
{getUserInitials(user)}
337336
</AvatarFallback>
338337
</Avatar>
339-
<span className="hidden md:inline text-sm font-medium max-w-[100px] truncate">{user?.name ?? 'User'}</span>
340-
<ChevronsUpDown className="h-3.5 w-3.5 text-muted-foreground" />
341338
</Button>
342339
</DropdownMenuTrigger>
343340
<DropdownMenuContent align="end" className="min-w-56 rounded-lg" sideOffset={4}>

0 commit comments

Comments
 (0)