Skip to content

Commit

Permalink
fix: gallery preview
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Nov 14, 2023
1 parent bc25b26 commit ef86a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/ItaliaTheme/GalleryPreview/GalleryPreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ const GalleryPreview = ({ id, viewIndex, setViewIndex, items }) => {
)}

{image && (
<Image
key={image['@id']}
itemUrl={image['@id']}
image={image['@id']}
alt={image.title}
/>
<Image key={image['@id']} item={image} alt={image.title} />
)}

{items.length > 1 && (
Expand Down
2 changes: 2 additions & 0 deletions src/theme/ItaliaTheme/Components/_galleryPreview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
max-width: 100%;
height: auto;
max-height: 72vh;
margin-left: auto;
margin-right: auto;
}

button.btn {
Expand Down

0 comments on commit ef86a15

Please sign in to comment.