Skip to content

Commit d238f34

Browse files
committed
fix: responsive
1 parent 5b6c580 commit d238f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.vitepress/theme/components/home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ defineProps({
1212
})
1313
</script>
1414
<template>
15-
<div class="home-components container mx-auto flex flex-col gap-8 py-12">
15+
<div class="home-components container mx-auto flex flex-col gap-8 py-12 px-4 md:px-6 lg:px-8">
1616
<h1 class="text-2xl! lg:text-4xl! leading-none font-bold! tracking-tight! dark:text-slate-300 text-slate-900 mt-10! mb-8! sm:mt-14! sm:mb-10!">{{ title }} </h1>
1717

18-
<div class="grid grid-cols-4 gap-6 items-stretch justify-items-start">
18+
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 items-stretch justify-items-start">
1919
<template v-for="group in sidebar" :key="group.text" class="flex w-full">
2020
<NavCard :group="group" class="w-full" />
2121
</template>

0 commit comments

Comments
 (0)