Skip to content

Commit f4e05a8

Browse files
chore(docs): update ComponentCard.vue styling
1 parent 16542e5 commit f4e05a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.docs/components/content/ComponentCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ onMounted(async () => {
4040
<div
4141
class="w-full p-4 rounded-2xl flex-col gap-2 backdrop-blur-sm bg-[#575757]/10 border border-[#DEDEDE] dark:border-[#303030] inline-flex min-h-[138px] sm:min-h-[146px]"
4242
>
43-
<div class="relative w-full">
43+
<div class="relative w-full flex items-center justify-center mt-4">
4444
<component :is="dynamicComponent" v-if="!radix" class="py-10" />
45-
<component :is="`${data.componentName}Radix`" v-else class="py-10" />
45+
<component :is="`${data.componentName}Radix`" v-else class="py-10 mx-auto" />
4646
</div>
4747
<div>
48-
<span class="text-xs px-2 py-1 border border-[#DEDEDE] dark:border-[#222] rounded-full text-[#676767] inline">{{ data.version }}</span>
48+
<span v-if="data.version" class="text-xs px-2 py-1 border border-[#DEDEDE] dark:border-[#222] rounded-full text-[#676767] inline">{{ data.version }}</span>
4949
</div>
5050
<NuxtLink :to="data._path" class="text-[#111] group-hover:text-oku-500 dark:text-white font-medium">
5151
{{ data.title }}

0 commit comments

Comments
 (0)