From ee2e5eb769c50ab8e8025a7766b1803cdde80865 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 21 Sep 2021 16:44:19 +0700 Subject: [PATCH 1/2] bug: response fix FeaturedProductsCarousel --- .../FeaturedProductsCarousel/FeaturedProductsCarousel.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/modules/home/FeaturedProductsCarousel/FeaturedProductsCarousel.tsx b/src/components/modules/home/FeaturedProductsCarousel/FeaturedProductsCarousel.tsx index 9e52dd6e4..beaf7018c 100644 --- a/src/components/modules/home/FeaturedProductsCarousel/FeaturedProductsCarousel.tsx +++ b/src/components/modules/home/FeaturedProductsCarousel/FeaturedProductsCarousel.tsx @@ -54,7 +54,7 @@ const dataDemo:FeaturedProductCardProps[] = [{ }, lap: { breakpoint: { max: 1024, min: 968 }, - items: 1.75, + items: 1.7, }, tablet: { breakpoint: { max: 968, min: 768 }, @@ -66,11 +66,11 @@ const dataDemo:FeaturedProductCardProps[] = [{ }, largeMobile: { breakpoint: { max: 640, min: 400 }, - items: 2, + items: 1.5, }, mobile: { breakpoint: { max: 400, min: 300 }, - items: 1.5, + items: 1.15, }, smallMobile: { breakpoint: { max: 300, min: 0 }, From 505ef00d3814b9edd6f371b7d0f87d5ed05b092e Mon Sep 17 00:00:00 2001 From: Tan Le Date: Tue, 21 Sep 2021 17:55:15 +0700 Subject: [PATCH 2/2] refactor: styles btn checkout mobile --- .../CustomerInfoForm/CustomerInfoForm.module.scss | 7 +++++++ .../components/CustomerInfoForm/CustomerInfoForm.tsx | 8 +++++--- .../PaymentInfoForm/PaymentInfoForm.module.scss | 6 ++++++ .../components/PaymentInfoForm/PaymentInfoForm.tsx | 8 +++++--- .../ShippingInfoForm/ShippingInfoForm.module.scss | 6 ++++++ .../components/ShippingInfoForm/ShippingInfoForm.tsx | 8 +++++--- 6 files changed, 34 insertions(+), 9 deletions(-) diff --git a/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.module.scss b/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.module.scss index b0ecf8144..f8bfbe11f 100644 --- a/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.module.scss +++ b/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.module.scss @@ -11,5 +11,12 @@ font-size: 1.2rem; line-height: 2rem; } + @screen sm-only { + @apply flex-col items-start; + .button { + padding-top: 2rem; + } + } + } } \ No newline at end of file diff --git a/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.tsx b/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.tsx index 8496b119d..5894683d7 100644 --- a/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.tsx +++ b/src/components/modules/checkout/CheckoutInfo/components/CustomerInfoForm/CustomerInfoForm.tsx @@ -43,9 +43,11 @@ const CustomerInfoForm = ({ id, onConfirm }: CustomerInfoFormProps) => { } . - - Continue to Shipping - +
+ + Continue to Shipping + +
) diff --git a/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.module.scss b/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.module.scss index 15a70659c..4b709d5bb 100644 --- a/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.module.scss +++ b/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.module.scss @@ -12,5 +12,11 @@ font-size: 1.2rem; line-height: 2rem; } + @screen sm-only { + @apply flex-col items-start; + .button { + padding-top: 2rem; + } + } } } \ No newline at end of file diff --git a/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.tsx b/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.tsx index dc84fec38..eac100fb0 100644 --- a/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.tsx +++ b/src/components/modules/checkout/CheckoutInfo/components/PaymentInfoForm/PaymentInfoForm.tsx @@ -44,9 +44,11 @@ const PaymentInfoForm = ({onConfirm,id}: PaymentInfoFormProps) => { } . - - Submit Order - +
+ + Submit Order + +
) diff --git a/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.module.scss b/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.module.scss index c0c8b2795..aa177fc88 100644 --- a/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.module.scss +++ b/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.module.scss @@ -12,6 +12,12 @@ font-size: 1.2rem; line-height: 2rem; } + @screen sm-only { + @apply flex-col items-start; + .button { + padding-top: 2rem; + } + } } .line{ >div{ diff --git a/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.tsx b/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.tsx index ac4bc8af5..233e9d057 100644 --- a/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.tsx +++ b/src/components/modules/checkout/CheckoutInfo/components/ShippingInfoForm/ShippingInfoForm.tsx @@ -86,9 +86,11 @@ const ShippingInfoForm = ({onConfirm,id}: ShippingInfoFormProps) => { } . - - Continue to Payment - +
+ + Continue to Payment + +
)