Skip to content

Commit

Permalink
fix(theme): incorrect page layout when navbar: false, close #270 (#273
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pengzhanbo authored Oct 13, 2024
1 parent 2e4c544 commit c32dd3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions theme/src/client/components/Nav/VPNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ watchEffect(() => {
</script>

<template>
<div class="vp-nav" :class="{ fixed }">
<header v-if="hasNavbar" class="vp-nav" :class="{ fixed }">
<VPNavbar :is-screen-open="isScreenOpen" @toggle-screen="toggleScreen">
<template #nav-bar-title-before>
<slot name="nav-bar-title-before" />
Expand All @@ -53,7 +53,7 @@ watchEffect(() => {
<slot name="nav-screen-content-after" />
</template>
</VPNavScreen>
</div>
</header>
</template>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion theme/src/client/styles/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@
--vp-nav-height: 0px;
}

.hide-nav .sidebar {
.hide-nav .vp-sidebar {
--vp-nav-height: 22px;
}

Expand Down

0 comments on commit c32dd3e

Please sign in to comment.