fix: adjust user menu button height for avatar content (#77)

Override the fixed h-6.5 from Kumo's sm size with h-auto and py-1 so
the button sizes naturally around the avatar. The sm size is still used
for text size, gap, and border-radius — only the height is overridden,
since this is a usage-specific concern (tall content inside a small
button) rather than a design system issue.

Co-authored-by: Matt Kane <mkane@cloudflare.com>
This commit is contained in:
Sarah Dayan
2026-04-06 22:09:12 +02:00
committed by GitHub
parent fe74f8a33e
commit ec1e71ec2f

View File

@@ -55,7 +55,7 @@ export function Header() {
{/* User menu */}
<Popover open={userMenuOpen} onOpenChange={setUserMenuOpen}>
<Popover.Trigger asChild>
<Button variant="ghost" size="sm" className="gap-2">
<Button variant="ghost" size="sm" className="gap-2 py-1 h-auto">
{user?.avatarUrl ? (
<img src={user.avatarUrl} alt="" className="h-6 w-6 rounded-full object-cover" />
) : (