shish 4 ヶ月 前
コミット
c10fab2bcc
1 ファイル変更12 行追加12 行削除
  1. 12 12
      hdApp/src/admin/home/workbench.vue

+ 12 - 12
hdApp/src/admin/home/workbench.vue

@@ -17,16 +17,8 @@
           <view class="profile-section">
             <view class="profile-header">
               <view class="avatar-container">
-                <button
-                  class="avatar-button"
-                  open-type="chooseAvatar"
-                  @chooseavatar="onChooseAvatar"
-                >
-                  <image
-                    class="avatar"
-                    :src="shopAvatar()"
-                    mode="aspectFill"
-                  />
+                <button class="avatar-button" open-type="chooseAvatar" @chooseavatar="onChooseAvatar" >
+                  <image class="avatar" :src="shopAvatar()" mode="aspectFill" />
                 </button>
               </view>
               <view class="user-info" @click="pageTo({url:'/admin/home/edit'})">
@@ -1089,13 +1081,18 @@
           overflow: hidden;
           background-color: rgba(255,255,255,0.2);
           border: 1upx solid #ffffff;
+          display: flex;
+          align-items: center;
+          justify-content: center;
           .avatar-button {
             background: none !important;
             border: none !important;
             padding: 0 !important;
             margin: 0 !important;
             line-height: 1;
-            display: block;
+            display: flex;
+            align-items: center;
+            justify-content: center;
             width: 50upx;
             height: 50upx;
             color: transparent !important;
@@ -1109,12 +1106,15 @@
         }
         .user-info {
           flex: 1;
-          margin-left: 24upx;
+          margin-left: 10upx;
+          display: flex;
+          align-items: center;
           .username {
             display: block;
             font-size: 40upx;
             font-weight: bold;
             color: #ffffff;
+            line-height: 1;
           }
           .user-id {
             display: block;