Skip to content

Commit

Permalink
fix(theme): edit link gets hidden when a page don't have siblings (#751)
Browse files Browse the repository at this point in the history
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
  • Loading branch information
luminr and kiaking committed Jun 21, 2022
1 parent 75c9d80 commit 9bc4330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/components/VPDocFooter.vue
Expand Up @@ -19,7 +19,7 @@ const hasLastUpdated = computed(() => {
</script>

<template>
<footer v-if="control.prev || control.next" class="VPDocFooter">
<footer class="VPDocFooter">
<div class="edit-info">
<div v-if="theme.editLink && frontmatter.editLink !== false" class="edit-link">
<VPLink class="edit-link-button" :href="editLink.url" :no-icon="true">
Expand All @@ -33,7 +33,7 @@ const hasLastUpdated = computed(() => {
</div>
</div>

<div class="prev-next">
<div v-if="control.prev || control.next" class="prev-next">
<div class="pager">
<a v-if="control.prev" class="pager-link prev" :href="normalizeLink(control.prev.link)">
<span class="desc">Previous page</span>
Expand Down

0 comments on commit 9bc4330

Please sign in to comment.