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

Thumbnails should always use the available space #340

Closed
axos88 opened this issue May 24, 2020 · 3 comments · Fixed by #411 or #409
Closed

Thumbnails should always use the available space #340

axos88 opened this issue May 24, 2020 · 3 comments · Fixed by #411 or #409
Labels

Comments

@axos88
Copy link

axos88 commented May 24, 2020

Related #289

in the gallery component:

Currently when the first thumnail (and respectively the last) is selected, the thumnails are pushed to the right, half of the available space being empty.
This sliding behaviour looks awesome, and is super useful but I would like an option to keep as many thumnails in view as there is space for, and when the first or last thumnails are selected, they should be moved the the far left or far right edge of the container. Having half of the thumnail view empty looks odd to me, and unnecesarily constrains the number of thumnails i can see and move to with a single click.

When the 10th thumbnail of 40 is selected, it should be moved to 25% of the container,
When the middle thumnail is selected, it should be positioned in the middle,
when the last thumnail is selected it should be positioned at the far right / bottom, etc.

@MurhafSousli
Copy link
Owner

Unfortunately, this is currently not possible

@axos88
Copy link
Author

axos88 commented May 26, 2020

Yes, I'm aware, that's why this is a feature request :)

NexGenUA added a commit to NexGenUA/ngx-gallery that referenced this issue Oct 31, 2021
MurhafSousli added a commit that referenced this issue Nov 1, 2021
@MurhafSousli MurhafSousli mentioned this issue Nov 1, 2021
This was linked to pull requests Nov 1, 2021
@MurhafSousli
Copy link
Owner

MurhafSousli commented Nov 7, 2021

Fixed in v5.1.1, use the input thumbView="contain" or use the global option { thumbView: 'contain' }

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

Successfully merging a pull request may close this issue.

2 participants