浏览代码

ajuste proporcao foto

Gustavo Zanatta 1 月之前
父节点
当前提交
e2459417e4
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 6 0
      src/pages/associado/carteirinha/CarteirinhaPage.vue
  2. 6 0
      src/pages/associado/profile/ProfilePage.vue

+ 6 - 0
src/pages/associado/carteirinha/CarteirinhaPage.vue

@@ -160,6 +160,12 @@ onMounted(async () => {
     border: 2px solid rgba(255, 255, 255, 0.4);
     background: rgba(255, 255, 255, 0.15);
     flex-shrink: 0;
+
+    img {
+      width: 100%;
+      height: 100%;
+      object-fit: cover;
+    }
   }
 
   .card-info {

+ 6 - 0
src/pages/associado/profile/ProfilePage.vue

@@ -317,6 +317,12 @@ const onAddDependent = () => {
 .profile-avatar {
   background: rgba(255, 255, 255, 0.18) !important;
   border: 2px solid rgba(255, 255, 255, 0.45);
+
+  img {
+    width: 100%;
+    height: 100%;
+    object-fit: cover;
+  }
 }
 
 .profile-avatar-edit {