From 12249b3c9f29cf824ad3a11c1671f355f2f9753a Mon Sep 17 00:00:00 2001
From: Thomas Faughnan <47096018+tfaughnan@users.noreply.github.com>
Date: Sat, 29 Jul 2023 21:53:00 -0400
Subject: [PATCH] fix: force navbar avatar to be square (#44)
Though the width and height attributes are set to 32 in this component,
the height is overridden by the more general styling for `` tags,
which sets image heights to `auto`. For users with non-square avatars,
their avatar may overflow beyond its ring border. Specify the
`aspect-square` class to force a 1:1 aspect ratio. The Avatar component
used for posts, comments, etc. already does this.
---
src/lib/components/ui/Navbar.svelte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/components/ui/Navbar.svelte b/src/lib/components/ui/Navbar.svelte
index 41ecef74..86daad9b 100644
--- a/src/lib/components/ui/Navbar.svelte
+++ b/src/lib/components/ui/Navbar.svelte
@@ -129,7 +129,7 @@
alt=""
width={32}
height={32}
- class="rounded-full"
+ class="rounded-full aspect-square"
/>
{#if $user.unreads > 0}