Skip to content

Renders too big images for small galleries #2

@SaySaeqo

Description

@SaySaeqo

[Summary]
When the number of images is so small that they cannot even fill a single line in the gallery div, then they are scaled up to the width of the container anyway. This produces unwanted behavior that creates big images (e.g. on the entire screen) when we don't know how many images will be in the gallery beforehand.

[How to recreate]

  1. Go to the demo page.
  2. Delete some divs in the container. Leave only 1.
  3. Press button "Clean me this".
Before After
Image Image

[Solution]
I have actually found the solution myself. I am just leaving this issue here because I am not sure if this isn't some type of feature instead of a bug.

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