From 0c8fb7c5a8f7c84018a89fa900e5fd4b54a0acc3 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Tue, 9 May 2023 11:46:54 +0200 Subject: [PATCH] adjust versions and contributors styling on detail page --- .../theme/components/base/Label.vue | 16 +++ .../components/icons/IconContributors.vue | 21 ++-- .../components/icons/IconDetailOverlay.vue | 20 ++-- .../theme/components/icons/IconInfo.vue | 30 ++++- .../theme/components/icons/IconItem.vue | 2 +- docs/icons/[name].md | 106 +++++++++++++++--- 6 files changed, 155 insertions(+), 40 deletions(-) create mode 100644 docs/.vitepress/theme/components/base/Label.vue diff --git a/docs/.vitepress/theme/components/base/Label.vue b/docs/.vitepress/theme/components/base/Label.vue new file mode 100644 index 000000000..f3722bb8c --- /dev/null +++ b/docs/.vitepress/theme/components/base/Label.vue @@ -0,0 +1,16 @@ + + + + diff --git a/docs/.vitepress/theme/components/icons/IconContributors.vue b/docs/.vitepress/theme/components/icons/IconContributors.vue index fcac76d54..244ea1923 100644 --- a/docs/.vitepress/theme/components/icons/IconContributors.vue +++ b/docs/.vitepress/theme/components/icons/IconContributors.vue @@ -1,5 +1,6 @@ @@ -37,7 +32,10 @@
@@ -139,4 +137,12 @@ opacity: 0; } +.version { + margin-right: 24px; +} + +.contributors { + justify-content: flex-end; +} + diff --git a/docs/.vitepress/theme/components/icons/IconInfo.vue b/docs/.vitepress/theme/components/icons/IconInfo.vue index e8f0ad9e8..9588e2cb3 100644 --- a/docs/.vitepress/theme/components/icons/IconInfo.vue +++ b/docs/.vitepress/theme/components/icons/IconInfo.vue @@ -6,14 +6,20 @@ import CopySVGButton from './CopySVGButton.vue'; import CopyCodeButton from './CopyCodeButton.vue'; import VPButton from 'vitepress/dist/client/theme-default/components/VPButton.vue'; import {useData, useRouter} from 'vitepress'; +import { computed } from 'vue'; -defineProps<{ +const props = defineProps<{ icon: IconEntity popoverPosition?: 'top' | 'bottom' }>() const { go } = useRouter() const { page } = useData() + +const tags = computed(() => { + if (!props.icon) return [] + return props.icon.tags.join(' • ') +})