fix: buttons not square

This commit is contained in:
Xylight committed 2024-02-10 11:55:10 -08:00
1 parent 8590377082
commit fbf3b95bfe
1 file changed
+25 -13
+25 -13
View File
@@ -53,7 +53,7 @@
<nav <nav
class="flex flex-row gap-2 items-center class="flex flex-row gap-2 items-center
backdrop-blur-3xl w-full mx-auto px-4 py-2 z-50 box-border h-16 backdrop-blur-sm w-full mx-auto px-4 py-2 z-50 box-border h-16
{$$props.class} {$$props.class}
" "
style={$$props.style} style={$$props.style}
@@ -116,7 +116,7 @@
<Button <Button
href="/admin" href="/admin"
aria-label="Admin" aria-label="Admin"
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative" class="max-md:w-8 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
> >
<Icon src={ServerStack} mini size="18" slot="prefix" /> <Icon src={ServerStack} mini size="18" slot="prefix" />
<span class="hidden md:inline">Admin</span> <span class="hidden md:inline">Admin</span>
@@ -132,7 +132,7 @@
<Button <Button
href="/moderation" href="/moderation"
aria-label="Moderation" aria-label="Moderation"
class="max-md:w-9 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative" class="max-md:w-8 max-md:h-8 max-md:!p-0 dark:text-zinc-300 text-slate-700 relative"
> >
{#if ($profile?.user?.notifications.reports ?? 0) > 0} {#if ($profile?.user?.notifications.reports ?? 0) > 0}
<div <div
@@ -146,7 +146,7 @@
<Button <Button
href="/search" href="/search"
aria-label="Search" aria-label="Search"
class="max-md:w-9 max-md:h-8 max-md:!p-0" class="max-md:w-8 max-md:h-8 max-md:!p-0"
> >
<Icon mini src={MagnifyingGlass} width={16} slot="prefix" /> <Icon mini src={MagnifyingGlass} width={16} slot="prefix" />
<span class="hidden md:inline">Search</span> <span class="hidden md:inline">Search</span>
@@ -154,7 +154,7 @@
<Button <Button
href="/communities" href="/communities"
aria-label="Communities" aria-label="Communities"
class="max-md:w-9 max-md:h-8 max-md:!p-0" class="max-md:w-8 max-md:h-8 max-md:!p-0"
> >
<Icon mini src={GlobeAlt} size="16" slot="prefix" /> <Icon mini src={GlobeAlt} size="16" slot="prefix" />
<span class="hidden md:inline">Explore</span> <span class="hidden md:inline">Explore</span>
@@ -164,7 +164,7 @@
color="primary" color="primary"
slot="target" slot="target"
aria-label="Create" aria-label="Create"
class="max-md:w-9 max-md:h-8 max-md:!p-0" class="max-md:w-8 max-md:h-8 max-md:!p-0"
> >
<Icon src={Plus} width={18} mini slot="prefix" /> <Icon src={Plus} width={18} mini slot="prefix" />
<span class="hidden md:inline">Create</span> <span class="hidden md:inline">Create</span>
@@ -203,7 +203,7 @@
containerClass="!max-h-[28rem] z-10" containerClass="!max-h-[28rem] z-10"
> >
<button <button
class="w-8 h-8 rounded-full ring-1 ring-slate-300 bg-slate-100 class="w-8 h-8 rounded-full ring-1 ring-slate-300 dark:ring-zinc-600 bg-slate-100
dark:bg-zinc-800 relative" dark:bg-zinc-800 relative"
aria-label="Profile" aria-label="Profile"
slot="target" slot="target"
@@ -229,13 +229,15 @@
</button> </button>
{#if $profile?.user} {#if $profile?.user}
<div class="flex flex-row gap-2 items-center py-2 mx-4 font-medium"> <div class="flex flex-row gap-2 items-center py-2 mx-4 font-medium">
<Avatar width={22} url={$profile?.user?.local_user_view.person.avatar} alt={$profile?.username} /> <Avatar
width={22}
url={$profile?.user?.local_user_view.person.avatar}
alt={$profile?.username}
/>
{$profile?.user?.local_user_view?.person.name} {$profile?.user?.local_user_view?.person.name}
</div> </div>
{:else} {:else}
<MenuDivider> <MenuDivider>Profile</MenuDivider>
Profile
</MenuDivider>
{/if} {/if}
{#if $profile?.user} {#if $profile?.user}
<MenuButton link href="/profile"> <MenuButton link href="/profile">
@@ -311,10 +313,20 @@
<Badge>{__VERSION__}</Badge> <Badge>{__VERSION__}</Badge>
</button> </button>
</div> </div>
<Button color="tertiary" href="https://buymeacoffee.com/xylight" title="Donate" size="square-md"> <Button
color="tertiary"
href="https://buymeacoffee.com/xylight"
title="Donate"
size="square-md"
>
<Icon src={Heart} size="16" mini /> <Icon src={Heart} size="16" mini />
</Button> </Button>
<Button color="tertiary" href="https://github.com/Xyphyn/Photon" title="GitHub" size="square-md"> <Button
color="tertiary"
href="https://github.com/Xyphyn/Photon"
title="GitHub"
size="square-md"
>
<Icon src={CodeBracketSquare} size="16" mini /> <Icon src={CodeBracketSquare} size="16" mini />
</Button> </Button>
<Button color="tertiary" href="/about" title="About" size="square-md"> <Button color="tertiary" href="/about" title="About" size="square-md">