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

adding photoswipe to gallery page #89

Merged
merged 4 commits into from
Aug 29, 2020
Merged

adding photoswipe to gallery page #89

merged 4 commits into from
Aug 29, 2020

Conversation

arthurbailao
Copy link
Contributor

closes #88.

Note about #85: i've changed the grid to keep the images aspect ratio. This is specially important for PhotoSwipe animation works properly. Also removed the border-bottom property of gallery image links.

@victoriadrake
Copy link
Owner

Nice! Thank you very much Arthur, this looks to work smoothly with or without JS and the implementation is well done.

Can you think of any way the user could optionally turn on or off keeping the image aspect ratio? With different image ratios, the gallery can end up looking quite choppy:

Screenshot from 2020-08-23 17-22-49

@arthurbailao
Copy link
Contributor Author

Great idea Victoria! Just committed a change that adds the option keepAspectRatio to the gallery.

@arthurbailao
Copy link
Contributor Author

Just found a bug, give me a minute to fix.

@victoriadrake victoriadrake merged commit 0aa8d7a into victoriadrake:master Aug 29, 2020
@victoriadrake
Copy link
Owner

Beautiful! Thank you so much for contributing Arthur!

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

Successfully merging this pull request may close these issues.

PhotoSwipe gallery
2 participants