Commit 942d776b57adc39d796263b95d2df0d73a90470d

Authored by ww
1 parent f16db0c7

fix: fix personal avatar not responsive layout

修复用户头像没有响应式布局
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 :before-upload="beforeUploadqrcodePic" 35 :before-upload="beforeUploadqrcodePic"
36 > 36 >
37 <img 37 <img
38 - style="text-align: center; border-radius: 50%; width: 8.5vw; height: 15.2vh" 38 + style="text-align: center; border-radius: 50%"
39 v-if="peresonalPic" 39 v-if="peresonalPic"
40 :src="peresonalPic" 40 :src="peresonalPic"
41 alt="avatar" 41 alt="avatar"
@@ -118,7 +118,7 @@ @@ -118,7 +118,7 @@
118 }, 118 },
119 ]; 119 ];
120 export default defineComponent({ 120 export default defineComponent({
121 - name: 'index', 121 + name: 'Index',
122 components: { BasicModal, BasicForm, Description, Upload, PlusOutlined }, 122 components: { BasicModal, BasicForm, Description, Upload, PlusOutlined },
123 emits: ['refreshPersonl', 'register'], 123 emits: ['refreshPersonl', 'register'],
124 setup(_, { emit }) { 124 setup(_, { emit }) {
@@ -247,10 +247,15 @@ @@ -247,10 +247,15 @@
247 :deep .ant-upload-select-picture-card { 247 :deep .ant-upload-select-picture-card {
248 display: inherit; 248 display: inherit;
249 float: none; 249 float: none;
250 - width: 8.6vw;  
251 - height: 17vh;  
252 - margin-right: 0.2vw;  
253 - margin-bottom: 0.2vw; 250 + width: 35%;
  251 + height: 0;
  252 + padding-bottom: 35%;
  253 + margin: 0;
  254 +
  255 + // width: 8.6vw;
  256 + // height: 17vh;
  257 + // margin-right: 0.2vw;
  258 + // margin-bottom: 0.2vw;
254 text-align: center; 259 text-align: center;
255 vertical-align: top; 260 vertical-align: top;
256 background-color: #fafafa; 261 background-color: #fafafa;