Skip to content

Commit 9853006

Browse files
fix: show share button on all content pages instead of only TOC-matched pages
The v-if condition used shell.currentPage.length > 0, which requires the current URL to match a TOC entry. With placeholder content, this array is often empty even on valid content pages. Changed to use shell.isContentPage which correctly identifies content pages regardless of TOC matching.
1 parent c56cf34 commit 9853006

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EssentialCSharp.Web/src/components/PageShareAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const shell = inject("shell");
55
</script>
66

77
<template>
8-
<div v-if="shell.currentPage.length > 0" class="page-share-action">
8+
<div v-if="shell.isContentPage" class="page-share-action">
99
<div class="turn-page-tooltip">
1010
<button
1111
id="share-btn"

0 commit comments

Comments
 (0)