Skip to content

Image gallery distorts aspect ratio and thumbnail container has no overflow #242

@rikp777

Description

@rikp777

There are two related UI issues within the product image gallery component:

  • The main image slider (swiper-wrapper) distorts product images by forcing them to fit the container, ignoring their original aspect ratio.
  • The vertical thumbnail navigator on the side does not handle a large number of images, lacking a max height and scroll functionality.
Image

Expected Behavior
The image should preserve its original aspect ratio. The container should either:

  • Contain the image, fitting the whole picture inside the box without distortion.
  • Zoom/Cover the area, where the image fills the box and any excess is cropped
  • Carousel / Variable Width: Display each image with its original aspect ratio and dimensions, stacking them horizontally next to each other. The height of the slider could be consistent, allowing the width of each image to vary.

In all cases, the image must not be distorted

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions