Skip to content

Commit

Permalink
fix: account avatar should not be streched (#3165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0v1s authored Jan 31, 2025
1 parent 3d951ba commit 5c38c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/account/AccountAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const accountAvatarSrc = computed(() => {
:src="(error || !loaded) ? 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' : accountAvatarSrc"
:alt="$t('account.avatar_description', [props.account.username])"
loading="lazy"
class="account-avatar"
class="account-avatar object-cover"
:class="(loaded ? 'bg-base' : 'bg-gray:10') + (props.square ? ' ' : ' rounded-full')"
:style="{ 'clip-path': props.square ? `url(#avatar-mask)` : 'none' }"
v-bind="$attrs"
Expand Down

0 comments on commit 5c38c91

Please sign in to comment.