diff --git a/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.jsx b/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.jsx index 7f1ce8f8..71bb84cd 100644 --- a/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.jsx +++ b/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.jsx @@ -43,14 +43,24 @@ const ProductDealingControls = () => { - - - +
+ + + +
); }; diff --git a/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.module.scss b/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.module.scss index b0786b21..b0bbb91f 100644 --- a/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.module.scss +++ b/src/Components/ProductDetailsPage/ProductDetails/ProductDealingControls.module.scss @@ -6,6 +6,12 @@ margin: 18px 0 54px; } +@media (max-width: 480px) { + .dealing { + flex-direction: column; + } +} + .customNumberInput { display: flex; align-items: center; @@ -68,6 +74,12 @@ } } +.wrapper { + display: flex; + align-items: center; + gap: 20px; +} + .buyButton { outline: none; border: none; diff --git a/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.jsx b/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.jsx index 3879eb67..f98f7f89 100644 --- a/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.jsx +++ b/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.jsx @@ -1,12 +1,12 @@ import { useRef } from "react"; import { useSelector } from "react-redux"; import ProductPreview from "../ProductPreviw/ProductPreview"; +import ProductColorsSection from "./ProductColorsSection"; import ProductDealingControls from "./ProductDealingControls"; import s from "./ProductDetails.module.scss"; import ProductFeatures from "./ProductFeatures"; import ProductFirstInfos from "./ProductFirstInfos"; import ProductSizes from "./ProductSizes"; -import ProductColorsSection from "./ProductColorsSection"; const ProductDetails = ({ data }) => { const { previewImg, isZoomInPreviewActive } = useSelector( diff --git a/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.module.scss b/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.module.scss index bf3d7d0a..0268f0cf 100644 --- a/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.module.scss +++ b/src/Components/ProductDetailsPage/ProductDetails/ProductDetails.module.scss @@ -9,6 +9,7 @@ @include large { .detailsSection { + height: auto; flex-direction: column; align-items: center; } @@ -89,5 +90,6 @@ @include large { .horizontalLine { max-width: 100%; + min-width: auto; } -} \ No newline at end of file +} diff --git a/src/Components/ProductDetailsPage/ProductDetails/ProductFirstInfos.module.scss b/src/Components/ProductDetailsPage/ProductDetails/ProductFirstInfos.module.scss index 39ff7f8a..77dae432 100644 --- a/src/Components/ProductDetailsPage/ProductDetails/ProductFirstInfos.module.scss +++ b/src/Components/ProductDetailsPage/ProductDetails/ProductFirstInfos.module.scss @@ -13,6 +13,12 @@ margin: 10px 0; } +@include very-small { + .rateAndReviews { + flex-direction: column; + } +} + /* [Stars] */ .rateAndReviews>* { gap: 6px; @@ -28,6 +34,12 @@ border-right: solid 2px var(--dark-gray); } +@include very-small { + .verticalLine { + display: none; + } +} + .greenText { font-size: .875rem; color: var(--green);