Skip to content

Commit d189f59

Browse files
RYGRITghostdevv
andauthored
fix: remove duplicate scroll-to-top button on docs page (#2229)
Co-authored-by: Willow (GHOST) <git@willow.sh>
1 parent cc20882 commit d189f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/ScrollToTop.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const route = useRoute()
33
44
// Pages where scroll-to-top should NOT be shown
5-
const excludedRoutes = new Set(['index', 'code'])
5+
const excludedRoutes = new Set(['index', 'docs', 'code'])
66
const isPackagePage = computed(() => route.name === 'package' || route.name === 'package-version')
77
88
const isActive = computed(() => !excludedRoutes.has(route.name as string) && !isPackagePage.value)

0 commit comments

Comments
 (0)