Robin 3 weeks ago committed by GitHub
commit 2419b7e58d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,16 +1,7 @@
<script setup lang="ts">
import { useWindowSize } from '@vueuse/core'
const { width: vw } = useWindowSize({
initialWidth: 0,
includeScrollbar: false
})
</script>
<template>
<div
class="vp-doc container"
:style="vw ? { '--vp-offset': `calc(50% - ${vw / 2}px)` } : {}"
style="--vp-offset: calc(50% - 50vw)"
>
<slot />
</div>

Loading…
Cancel
Save