Skip to content

Commit 2cdcd98

Browse files
authored
修复手机端顶部标题栏溢出、分页溢出的问题 (#1284)
1 parent 7540ee9 commit 2cdcd98

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

web/src/style/element_visiable.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@
105105
.el-pagination__total {
106106
line-height: 32px !important;
107107
}
108+
//小屏幕不显示
109+
@media (max-width: 750px) {
110+
.el-pagination__sizes{
111+
display: none !important;
112+
}
113+
}
108114
.btn-prev {
109115
padding-right: 6px;
110116
display: inline-flex;

web/src/view/layout/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
</div>
2828
</el-col>
2929
<el-col :xs="10" :lg="14" :md="14" :sm="9" :xl="14" :pull="1">
30-
<el-breadcrumb class="breadcrumb">
30+
<!-- 修改为手机端不显示顶部标签 -->
31+
<el-breadcrumb v-show="!isMobile" class="breadcrumb">
3132
<el-breadcrumb-item
3233
v-for="item in matched.slice(1,matched.length)"
3334
:key="item.path"
@@ -41,7 +42,7 @@
4142
<div class="dp-flex justify-content-center align-items height-full width-full">
4243
<span class="header-avatar" style="cursor: pointer">
4344
<CustomPic />
44-
<span style="margin-left: 5px">{{ userStore.userInfo.nickName }}</span>
45+
<span v-show="!isMobile" style="margin-left: 5px">{{ userStore.userInfo.nickName }}</span>
4546
<el-icon>
4647
<arrow-down />
4748
</el-icon>

web/src/view/layout/search/search.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
v-if="btnShow"
4242
class="user-box"
4343
>
44-
<div class="gvaIcon gvaIcon-customer-service" @click="toService" />
44+
<div class="service gvaIcon-customer-service" @click="toService" />
4545
</div>
4646
</div>
4747
</template>
@@ -114,4 +114,20 @@ const toService = () => {
114114
75%{-webkit-transform:rotate(270deg);}
115115
100%{-webkit-transform:rotate(360deg);}
116116
}
117+
118+
119+
.service {
120+
font-family: "gvaIcon" !important;
121+
font-size: 16px;
122+
font-style: normal;
123+
font-weight: 800;
124+
-webkit-font-smoothing: antialiased;
125+
-moz-osx-font-smoothing: grayscale;
126+
}
127+
//小屏幕不显示
128+
@media (max-width: 750px) {
129+
.service {
130+
display: none;
131+
}
132+
}
117133
</style>

0 commit comments

Comments
 (0)