Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gallery UI Breakage on Product View Page #1264

Open
dharmveer97 opened this issue Dec 24, 2023 · 2 comments
Open

Gallery UI Breakage on Product View Page #1264

dharmveer97 opened this issue Dec 24, 2023 · 2 comments

Comments

@dharmveer97
Copy link

dharmveer97 commented Dec 24, 2023

Unstable Layout and Mobile Breakage with Over 10 Gallery Images

** Issue Description**

In the product view page, when the gallery contains more than 10 images in an array, the UI of the page breaks. Specifically, the width of the section automatically increases, causing the entire page layout to break. Additionally, on mobile devices, the layout completely collapses when more than 8 or 10 images are added to the product view page gallery.

Solution

Implement a scrollable feature for the gallery to prevent the automatic width increase and layout breakage. Referencing the react-image-gallery package as an example, aim for a responsive and stable gallery layout that can handle a larger number of images without compromising the overall page structure.

Reference:

react-image-gallery - Example version for a stable and responsive gallery.

Tailwind CSS example :--- https://tailwindui.com/components/ecommerce/components/product-overviews

@dharmveer97
Copy link
Author

Screen.Recording.2023-12-24.at.7.19.09.pm.mov

@KyTechInc
Copy link

Not a perfect solution but my approach was to add a flex-wrap to this element. For a store, I'd rather have all variants visual in case the user doesn't know to scroll. However, that does introduce the potential for widow elements at certain widths.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants