Selaa lähdekoodia

ajuste proporcao imagem avatar

Gustavo Zanatta 1 kuukausi sitten
vanhempi
commit
db1a9806b9

+ 1 - 1
src/components/layout/AppHeader.vue

@@ -19,7 +19,7 @@
     <q-space />
 
     <q-avatar size="36px" class="app-header__avatar">
-      <img v-if="store.user?.photo_url" :src="store.user.photo_url" />
+      <img v-if="store.user?.photo_url" :src="store.user.photo_url" style="object-fit: cover; width: 100%; height: 100%;" />
       <span v-else class="app-header__avatar-initial">{{ userInitial }}</span>
 
       <q-menu anchor="bottom right" self="top right" class="app-header__lang-menu">

+ 1 - 1
src/pages/associado/carteirinha/CarteirinhaPage.vue

@@ -17,7 +17,7 @@
             class="card-avatar"
             :size="isVertical ? '100px' : '76px'"
           >
-            <img v-if="user?.photo_url" :src="user.photo_url" />
+            <img v-if="user?.photo_url" :src="user.photo_url" style="object-fit: cover; width: 100%; height: 100%;" />
             <q-icon v-else name="mdi-account" color="white" :size="isVertical ? '64px' : '40px'" />
           </q-avatar>
 

+ 1 - 1
src/pages/associado/profile/ProfilePage.vue

@@ -8,7 +8,7 @@
         <div class="profile-header row items-center q-pa-lg">
           <div class="profile-avatar-wrap q-mr-md">
             <q-avatar size="76px" class="profile-avatar">
-              <img v-if="user?.photo_url" :src="user.photo_url" />
+              <img v-if="user?.photo_url" :src="user.photo_url" style="object-fit: cover; width: 100%; height: 100%;" />
               <q-icon v-else name="mdi-account" size="44px" color="white" />
             </q-avatar>
             <q-btn