Skip to content

Commit daca338

Browse files
committed
Fix category display
1 parent 38902c4 commit daca338

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

components/Category/CategoryShowAll.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div v-if="data.productCategories">
3-
<section class="mx-auto bg-white">
3+
<section class=" bg-white">
44
<div
5-
class="grid gap-2 px-2 pt-2 pb-2 lg:px-0 xl:px-0 md:px-0 lg:grid-cols-4 sm:grid-cols-2 md:grid-cols-3 xs:grid-cols-3"
5+
class="flex justify-center align-middle flex-col md:flex-row"
66
>
77
<template v-for="nodes in data.productCategories">
88
<template v-for="category in nodes">
@@ -14,9 +14,9 @@
1414
query: { id: category.id },
1515
}"
1616
>
17-
<div class="mt-6 cursor-pointer">
17+
<div class="cursor-pointer ml-4 mt-[5rem] md:mt-[20rem] w-full md:w-64 flex-row">
1818
<div
19-
class="flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline"
19+
class="p-4 min-w-[10rem] flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline"
2020
>
2121
<p class="text-lg">
2222
{{ category.name }}

pages/categories.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
2+
<div class="flex justify-center items-center">
23
<CategoryShowAll />
4+
</div>
35
</template>
46

57
<script setup>

0 commit comments

Comments
 (0)