diff --git a/docs/src/.vuepress/theme/layouts/default.vue b/docs/src/.vuepress/theme/layouts/default.vue index 598cd87a..aee4a1a9 100644 --- a/docs/src/.vuepress/theme/layouts/default.vue +++ b/docs/src/.vuepress/theme/layouts/default.vue @@ -10,46 +10,56 @@ import ParentLayout from '@vuepress/theme-default/lib/client/layouts/Layout.vue' import ReactIcon from '~icons/logos/react' import GithubIcon from '~icons/carbon/logo-github' import DiscordIcon from '~icons/logos/discord-icon' + +const el = ref() +const marginLeft = ref() + +onMounted(() => { + const bbox = el.value.getBoundingClientRect() + marginLeft.value = `-${bbox.width / 2}px` +})