Skip to content

Commit 2a33288

Browse files
committed
Improve mobile design
1 parent f822621 commit 2a33288

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/Products/ProductsShowAll.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div id="product-container" class="flex flex-wrap items-center">
55
<template v-for="product in data.products.nodes">
66
<div
7-
v-if="product.slug !== undefined"
7+
v-if="product.slug"
88
:key="product.id"
99
class="flex flex-col mt-6 sm:w1/2 md:w-1/3 lg:1/4 xl:w-1/4"
1010
>
@@ -17,7 +17,7 @@
1717
>
1818
<img
1919
id="product-image"
20-
class="container mx-auto transition duration-500 ease-in-out transform cursor-pointer lg:w-64 xl:w-64 sm:p-4 hover:scale-110"
20+
class="container p-8 border w-4/5 border-gray-200 mx-auto lg:h-[190px] rounded drop-shadow-lg transition duration-500 ease-in-out transform cursor-pointer lg:w-64 sm:p-4 hover:scale-95"
2121
:alt="product.name"
2222
:src="productImage(product)"
2323
/>

components/Products/ProductsSingleProduct.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class="grid grid-cols-1 gap-4 mt-8 lg:grid-cols-2 xl:grid-cols-2 md:grid-cols-2 sm:grid-cols-2"
77
>
88
<img
9-
v-if="data.product.image !== undefined"
9+
v-if="data.product.image"
1010
id="product-image"
1111
class="h-auto p-8 transition duration-500 ease-in-out transform xl:p-2 md:p-2 lg:p-2 hover:shadow-lg hover:scale-95"
1212
:alt="data.product.name"

0 commit comments

Comments
 (0)