fixes avatar size

This commit is contained in:
Christian Beutel
2024-07-13 23:10:53 +02:00
parent 230f23b9ff
commit 90be5d90c0

View File

@@ -202,17 +202,22 @@
on:change={(e) => handleDropdownClick(e.detail)} on:change={(e) => handleDropdownClick(e.detail)}
let:toggleMenu={openDropdown} let:toggleMenu={openDropdown}
> >
<div class="flex items-center">
<button <button
class="rounded-full bg-white text-black hover:bg-gray-200 focus:ring-4 ring-gray-100/50 transition-colors max-h-11 aspect-square" class="rounded-full bg-white text-black hover:bg-gray-200 focus:ring-4 ring-gray-100/50 transition-colors h-10 aspect-square"
on:click={openDropdown} on:click={openDropdown}
> >
<img <img
class="rounded-full w-full h-full" class="rounded-full w-full h-full"
src={getFileURL($currentUser, $currentUser.avatar) || src={getFileURL(
$currentUser,
$currentUser.avatar,
) ||
`https://api.dicebear.com/7.x/initials/svg?seed=${$currentUser.username}&backgroundType=gradientLinear`} `https://api.dicebear.com/7.x/initials/svg?seed=${$currentUser.username}&backgroundType=gradientLinear`}
alt="avatar" alt="avatar"
/> />
</button> </button>
</div>
</Dropdown> </Dropdown>
</div> </div>
{:else} {:else}