Skip to content

Commit

Permalink
fix(theme): fix invalid vp-offset in ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Apr 28, 2024
1 parent b360ac8 commit 9794877
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client/theme-default/components/VPHomeContent.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<script setup lang="ts">
import { useWindowSize } from '@vueuse/core'
const { width: vw } = useWindowSize({ includeScrollbar: false })
const { width: vw } = useWindowSize({
initialWidth: 0,
includeScrollbar: false
})
</script>

<template>
Expand Down Expand Up @@ -46,7 +49,7 @@ const { width: vw } = useWindowSize({ includeScrollbar: false })
}
.vp-doc :deep(.VPHomeSponsors a),
.vp-doc :deep(.VPTeamPage a){
.vp-doc :deep(.VPTeamPage a) {
text-decoration: none;
}
</style>

0 comments on commit 9794877

Please sign in to comment.