fix(theme): hide extra navbar when no content (#1338)

pull/1344/head
meedfine 2 years ago committed by GitHub
parent 0672a696a4
commit 4482c5019d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,12 +4,15 @@ import VPFlyout from './VPFlyout.vue'
import VPMenuLink from './VPMenuLink.vue'
import VPSwitchAppearance from './VPSwitchAppearance.vue'
import VPSocialLinks from './VPSocialLinks.vue'
import { computed } from 'vue'
const { site, theme } = useData()
const hasExtraContent = computed(() => theme.value.localeLinks || site.value.appearance || theme.value.socialLinks)
</script>
<template>
<VPFlyout class="VPNavBarExtra" label="extra navigation">
<VPFlyout v-if="hasExtraContent" class="VPNavBarExtra" label="extra navigation">
<div v-if="theme.localeLinks" class="group">
<p class="trans-title">{{ theme.localeLinks.text }}</p>

Loading…
Cancel
Save