fix: 💄 Make sure avatars never shrink in flex containers

This commit is contained in:
Jesse Wierzbinski 2024-05-02 17:28:31 -10:00
parent eb0385ab8a
commit 8eaccb31c2
No known key found for this signature in database
5 changed files with 8 additions and 7 deletions

View file

@ -9,7 +9,7 @@
</Skeleton>
<div class="flex items-start justify-between px-4 py-3">
<div class="h-32 w-32 -mt-[4.5rem] z-10 bg-dark-700 rounded overflow-hidden">
<div class="h-32 w-32 -mt-[4.5rem] z-10 bg-dark-700 rounded shrink-0 overflow-hidden">
<Skeleton :enabled="skeleton" class="!h-full !w-full">
<img class="cursor-pointer bg-dark-700 ring-1 ring-white/10" :src="account?.avatar"
:alt="`${account?.acct}'s avatar'`" />

View file

@ -1,7 +1,7 @@
<template>
<NuxtLink :href="accountUrl" class="flex flex-row">
<Skeleton :enabled="!account" shape="rect" class="!h-12 w-12">
<div>
<div class="shrink-0">
<img class="h-12 w-12 rounded ring-1 ring-white/5" :src="account?.avatar"
:alt="`${account?.acct}'s avatar'`" />
</div>