Skip to content

Commit e8e2426

Browse files
committed
fix: mobile style comp
1 parent a47f35e commit e8e2426

File tree

7 files changed

+394
-334
lines changed

7 files changed

+394
-334
lines changed

src/components/page/GlobalLayout.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@
172172
}
173173
}
174174
175+
.topmenu {
176+
/* 必须为 topmenu 才能启用流式布局 */
177+
&.content-width-Fluid {
178+
.header-index-wide {
179+
margin-left: 0;
180+
}
181+
}
182+
}
175183
}
176184
177185
&.ant-layout-has-sider {

src/components/page/PageHeader.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,16 @@
222222
min-width: 0;
223223
text-align: right;
224224
}
225+
.action {
226+
margin-left: unset;
227+
min-width: 266px;
228+
flex: 0 1 auto;
229+
text-align: left;
230+
margin-bottom: 12px;
231+
&:empty {
232+
display: none;
233+
}
234+
}
225235
}
226236
}
227237
}

src/components/tools/HeaderNotice.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<template>
2-
<a-popover trigger="click" placement="bottomRight" :autoAdjustOverflow="false" overlayClassName="header-notice-wrapper" :overlayStyle="{ width: '300px', top: '50px' }">
2+
<a-popover
3+
trigger="click"
4+
placement="bottomRight"
5+
:autoAdjustOverflow="true"
6+
:arrowPointAtCenter="true"
7+
overlayClassName="header-notice-wrapper"
8+
:overlayStyle="{ width: '300px', top: '50px' }">
39
<template slot="content">
410
<a-spin :spinning="loadding">
511
<a-tabs>

src/views/account/settings/AvatarModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<a-modal :visible="visible" title="修改头像" :maskClosable="false" :confirmLoading="confirmLoading" :width="800">
33
<a-row>
4-
<a-col :span="12" :style="{height: '350px'}">
4+
<a-col :xs="24" :md="12" :style="{height: '350px'}">
55
<vue-cropper
66
ref="cropper"
77
:img="options.img"
@@ -14,7 +14,7 @@
1414
>
1515
</vue-cropper>
1616
</a-col>
17-
<a-col :span="12" :style="{height: '350px'}">
17+
<a-col :xs="24" :md="12" :style="{height: '350px'}">
1818
<div class="avatar-upload-preview">
1919
<img :src="previews.url" :style="previews.img"/>
2020
</div>

0 commit comments

Comments
 (0)