Skip to content

Commit ad31022

Browse files
committed
Fix avatar style in profile settings
1 parent 6a3e963 commit ad31022

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

frontend/src/components/view/profile/EditProfileForm.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<div class="tile is-ancestor">
44
<div class="tile is-parent">
55
<div class="tile is-child avatar">
6-
<div class="image is-square">
7-
<img v-if="user.avatar" class="image-avatar is-rounded" :src="user.avatar">
6+
<div class="image">
7+
<img v-if="user.avatar" class="image-avatar is-rounded fit" :src="user.avatar">
88
<DefaultAvatar v-else class="default-avatar" :user="user" />
99
<div class="actions">
1010
<b-upload
@@ -154,4 +154,11 @@ export default {
154154
}
155155
}
156156
}
157+
158+
.fit {
159+
width: 100%;
160+
height: 100%;
161+
object-fit: cover;
162+
object-position: 50% 50%;
163+
}
157164
</style>

0 commit comments

Comments
 (0)