Skip to content

site: nav-phone-icon display normal #6906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions site/src/layouts/header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,7 @@
Surely Form AI 助手内测开放申请   
<a target="_blank" href="https://form.antdv.com">立即申请</a>
</div>
<a-popover
v-model:open="menuVisible"
overlay-class-name="popover-menu"
placement="bottomRight"
trigger="click"
arrow-point-at-center
>
<UnorderedListOutlined class="nav-phone-icon" />
<template #content>
<Menu :is-mobile="isMobile" />
</template>
</a-popover>
<a-row :style="{ flexFlow: 'nowrap', height: 64 }">
<a-row :style="{ flexFlow: 'nowrap', height: 64, position: 'relative' }">
<a-col v-bind="colProps[0]">
<Logo />
</a-col>
Expand All @@ -45,6 +33,18 @@
/>
<Menu v-if="!isMobile" />
</a-col>
<a-popover
v-model:open="menuOpen"
overlay-class-name="popover-menu"
placement="bottomRight"
trigger="click"
arrow-point-at-center
>
<UnorderedListOutlined class="nav-phone-icon" />
<template #content>
<Menu :is-mobile="isMobile" />
</template>
</a-popover>
</a-row>
<a-modal
title="新版发布,邀您体验"
Expand Down Expand Up @@ -105,7 +105,7 @@ export default defineComponent({
return ['', 'index', 'index-cn'].includes(route.path);
});

const menuVisible = ref(false);
const menuOpen = ref(false);
const colProps = isHome.value
? [{ flex: 'none' }, { flex: 'auto' }]
: [
Expand Down Expand Up @@ -175,7 +175,7 @@ export default defineComponent({
'home-header': isHome.value,
},
colProps,
menuVisible,
menuOpen,
onTriggerSearching,
visibleAlertBanner,
cancelButtonProps,
Expand Down
9 changes: 5 additions & 4 deletions site/src/theme/static/responsive.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
.nav-phone-icon {
position: absolute;
top: 25px;
right: 30px;
top: 50%;
right: 16px;
transform: translateY(-50%);
z-index: 1;
display: none;
width: 16px;
height: 22px;
cursor: pointer;
font-size: 18px;
color: var(--text-color);
}

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