fix: consistent button sizes

This commit is contained in:
Xylight committed 2024-04-13 19:58:34 -07:00
1 parent a100ec4d30
commit 7b313290d9
2 files changed
+11 -12

No files matched your search

+6 -9
View File
@@ -37,7 +37,7 @@
<Profile <Profile
placement="top" placement="top"
itemsClass="h-8 md:h-8 z-10" itemsClass="h-8 md:h-8 z-10"
targetClass="z-10 h-8" targetClass="z-10 h-10"
containerClass="!max-h-[28rem] z-10" containerClass="!max-h-[28rem] z-10"
buttonClass="" buttonClass=""
/> />
@@ -76,7 +76,7 @@
<Avatar <Avatar
alt={favorite.subdivision.name} alt={favorite.subdivision.name}
url={favorite.subdivision.avatar} url={favorite.subdivision.avatar}
width={28} width={32}
res={64} res={64}
class="" class=""
/> />
@@ -93,7 +93,7 @@
alt={favorite.name} alt={favorite.name}
url={favorite.avatar} url={favorite.avatar}
res={64} res={64}
width={28} width={32}
class="w-full" class="w-full"
/> />
<Icon <Icon
@@ -119,11 +119,8 @@
<ShieldIcon let:isSelected slot="icon" filled={isSelected} width={18} /> <ShieldIcon let:isSelected slot="icon" filled={isSelected} width={18} />
</NavButton> </NavButton>
{/if} {/if}
<NavButton <NavButton href="/communities" label="Explore" icon={GlobeAlt} />
href="/communities" {#if $profile?.user && isAdmin($profile.user)}
label="Explore"
icon={GlobeAlt}
/>{#if $profile?.user && isAdmin($profile.user)}
<NavButton <NavButton
href="/admin" href="/admin"
label="Admin" label="Admin"
@@ -139,7 +136,7 @@
{/if} {/if}
<NavButton href="/search" label="Search" icon={MagnifyingGlass} /> <NavButton href="/search" label="Search" icon={MagnifyingGlass} />
<NavButton href="/" label="Home" icon={Home} /> <NavButton href="/" label="Home" icon={Home} />
<Menu placement="top" targetClass="h-8"> <Menu placement="top">
<NavButton <NavButton
class="relative" class="relative"
color="primary" color="primary"
+5 -3
View File
@@ -34,17 +34,19 @@
<Menu {...$$restProps}> <Menu {...$$restProps}>
<button <button
class="w-8 h-8 rounded-full ring-1 ring-slate-200 dark:ring-zinc-700 class="w-10 h-10 rounded-full ring-1 ring-slate-200 dark:ring-zinc-700
transition-all bg-slate-50 dark:bg-zinc-900 relative transition-all bg-slate-50 dark:bg-zinc-900 relative
hover:dark:brightness-125 hover:brightness {$$props.buttonClass}" hover:dark:brightness-125 hover:brightness {$$props.buttonClass}"
aria-label="Profile" aria-label="Profile"
slot="target" slot="target"
> >
{#if $profile?.user} {#if $profile?.user}
<div class="w-8 h-8 aspect-square object-cover rounded-full"> <div
class="w-10 h-10 aspect-square object-cover rounded-full grid place-items-center"
>
<Avatar <Avatar
url={$profile.user.local_user_view.person.avatar} url={$profile.user.local_user_view.person.avatar}
width={32} width={38}
alt={$profile.user.local_user_view.person.name} alt={$profile.user.local_user_view.person.name}
/> />
</div> </div>