Skip to content

Commit 1f01ae0

Browse files
authored
docs: nav-phone-icon display normal (#6906)
1 parent 9464158 commit 1f01ae0

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

site/src/layouts/header/index.vue

+15-15
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,7 @@
2020
Surely Form AI 助手内测开放申请   
2121
<a target="_blank" href="https://form.antdv.com">立即申请</a>
2222
</div>
23-
<a-popover
24-
v-model:open="menuVisible"
25-
overlay-class-name="popover-menu"
26-
placement="bottomRight"
27-
trigger="click"
28-
arrow-point-at-center
29-
>
30-
<UnorderedListOutlined class="nav-phone-icon" />
31-
<template #content>
32-
<Menu :is-mobile="isMobile" />
33-
</template>
34-
</a-popover>
35-
<a-row :style="{ flexFlow: 'nowrap', height: 64 }">
23+
<a-row :style="{ flexFlow: 'nowrap', height: 64, position: 'relative' }">
3624
<a-col v-bind="colProps[0]">
3725
<Logo />
3826
</a-col>
@@ -45,6 +33,18 @@
4533
/>
4634
<Menu v-if="!isMobile" />
4735
</a-col>
36+
<a-popover
37+
v-model:open="menuOpen"
38+
overlay-class-name="popover-menu"
39+
placement="bottomRight"
40+
trigger="click"
41+
arrow-point-at-center
42+
>
43+
<UnorderedListOutlined class="nav-phone-icon" />
44+
<template #content>
45+
<Menu :is-mobile="isMobile" />
46+
</template>
47+
</a-popover>
4848
</a-row>
4949
<a-modal
5050
title="新版发布,邀您体验"
@@ -105,7 +105,7 @@ export default defineComponent({
105105
return ['', 'index', 'index-cn'].includes(route.path);
106106
});
107107
108-
const menuVisible = ref(false);
108+
const menuOpen = ref(false);
109109
const colProps = isHome.value
110110
? [{ flex: 'none' }, { flex: 'auto' }]
111111
: [
@@ -175,7 +175,7 @@ export default defineComponent({
175175
'home-header': isHome.value,
176176
},
177177
colProps,
178-
menuVisible,
178+
menuOpen,
179179
onTriggerSearching,
180180
visibleAlertBanner,
181181
cancelButtonProps,

site/src/theme/static/responsive.less

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
.nav-phone-icon {
22
position: absolute;
3-
top: 25px;
4-
right: 30px;
3+
top: 50%;
4+
right: 16px;
5+
transform: translateY(-50%);
56
z-index: 1;
67
display: none;
7-
width: 16px;
8-
height: 22px;
98
cursor: pointer;
9+
font-size: 18px;
10+
color: var(--text-color);
1011
}
1112

1213
@media only screen and (max-width: 992px) {

0 commit comments

Comments
 (0)