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 `<img>` 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.
This commit is contained in:
Thomas Faughnan authored and GitHub committed 2023-07-29 18:53:00 -07:00
1 parent 85ce6cd053
commit 12249b3c9f
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@
alt=""
width={32}
height={32}
class="rounded-full"
class="rounded-full aspect-square"
/>
{#if $user.unreads > 0}
<div class="rounded-full w-2 h-2 bg-red-500 absolute top-0 left-0" />