diff --git a/src/views/Product/Gallery/Modal/index.scss b/src/views/Product/Gallery/Modal/index.scss index c5c6551..2b3120a 100644 --- a/src/views/Product/Gallery/Modal/index.scss +++ b/src/views/Product/Gallery/Modal/index.scss @@ -4,7 +4,7 @@ position: fixed; top: 0px; left: 0px; - background-color: rgba(0, 0, 0, 0.89); + background-color: rgba(0, 0, 0, 0.973); &__exit{ position: fixed; right: 30px; @@ -17,7 +17,10 @@ max-width: 900px; height: 70vh; max-height: 600px; - min-height: 500px; + min-height: 300px; + border: 1px solid white; + margin-bottom: 10px; + border-radius: 20px; & img{ width: 100%; height: 100%; diff --git a/src/views/Product/Gallery/index.js b/src/views/Product/Gallery/index.js index 7dbebae..b753739 100644 --- a/src/views/Product/Gallery/index.js +++ b/src/views/Product/Gallery/index.js @@ -32,14 +32,14 @@ export default function Gallery(props) { { props.gallery.length > 3 ? <> - - - + + + : <> { props.gallery.map((item, i) => ( - + )) } @@ -56,12 +56,12 @@ export default function Gallery(props) { } const Item = (props) => { - const {item, more, setSelectedMedia, setModal} = props; + const {item, more, setSelectedMedia, setModal, active} = props; return( <> { window.innerWidth > 1000 ? -
+
{ item.type === 'image' ? {'عکس'} : null