From a24fc5241ee1703bd0d6b0a536eb8ecd440900ae Mon Sep 17 00:00:00 2001 From: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com> Date: Sat, 25 Jun 2022 02:10:58 +0200 Subject: [PATCH] chore(docs): move icons into header but in container --- docs/src/.vuepress/theme/layouts/default.vue | 87 +++++++++----------- 1 file changed, 40 insertions(+), 47 deletions(-) diff --git a/docs/src/.vuepress/theme/layouts/default.vue b/docs/src/.vuepress/theme/layouts/default.vue index aee4a1a9..f7c8307f 100644 --- a/docs/src/.vuepress/theme/layouts/default.vue +++ b/docs/src/.vuepress/theme/layouts/default.vue @@ -10,56 +10,49 @@ 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` -})