fix: consistent button sizes
This commit is contained in:
1 parent
a100ec4d30
commit
7b313290d9
2 files changed
+11
-12
No files matched your search
@@ -37,7 +37,7 @@
|
||||
<Profile
|
||||
placement="top"
|
||||
itemsClass="h-8 md:h-8 z-10"
|
||||
targetClass="z-10 h-8"
|
||||
targetClass="z-10 h-10"
|
||||
containerClass="!max-h-[28rem] z-10"
|
||||
buttonClass=""
|
||||
/>
|
||||
@@ -76,7 +76,7 @@
|
||||
<Avatar
|
||||
alt={favorite.subdivision.name}
|
||||
url={favorite.subdivision.avatar}
|
||||
width={28}
|
||||
width={32}
|
||||
res={64}
|
||||
class=""
|
||||
/>
|
||||
@@ -93,7 +93,7 @@
|
||||
alt={favorite.name}
|
||||
url={favorite.avatar}
|
||||
res={64}
|
||||
width={28}
|
||||
width={32}
|
||||
class="w-full"
|
||||
/>
|
||||
<Icon
|
||||
@@ -119,11 +119,8 @@
|
||||
<ShieldIcon let:isSelected slot="icon" filled={isSelected} width={18} />
|
||||
</NavButton>
|
||||
{/if}
|
||||
<NavButton
|
||||
href="/communities"
|
||||
label="Explore"
|
||||
icon={GlobeAlt}
|
||||
/>{#if $profile?.user && isAdmin($profile.user)}
|
||||
<NavButton href="/communities" label="Explore" icon={GlobeAlt} />
|
||||
{#if $profile?.user && isAdmin($profile.user)}
|
||||
<NavButton
|
||||
href="/admin"
|
||||
label="Admin"
|
||||
@@ -139,7 +136,7 @@
|
||||
{/if}
|
||||
<NavButton href="/search" label="Search" icon={MagnifyingGlass} />
|
||||
<NavButton href="/" label="Home" icon={Home} />
|
||||
<Menu placement="top" targetClass="h-8">
|
||||
<Menu placement="top">
|
||||
<NavButton
|
||||
class="relative"
|
||||
color="primary"
|
||||
|
||||
@@ -34,17 +34,19 @@
|
||||
|
||||
<Menu {...$$restProps}>
|
||||
<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
|
||||
hover:dark:brightness-125 hover:brightness {$$props.buttonClass}"
|
||||
aria-label="Profile"
|
||||
slot="target"
|
||||
>
|
||||
{#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
|
||||
url={$profile.user.local_user_view.person.avatar}
|
||||
width={32}
|
||||
width={38}
|
||||
alt={$profile.user.local_user_view.person.name}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user