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

Article lightbox refactor #7647

Merged
merged 2 commits into from
Jan 6, 2015
Merged

Article lightbox refactor #7647

merged 2 commits into from
Jan 6, 2015

Conversation

holder-josh
Copy link
Contributor

This refactor cleans up a lot of duplicate code for launching the lightbox on different content types by moving more of the logic into the lightboxable trait.

Also now preventing long vertical cartoons from being lightboxable by checking the width/height ratio. This is important because long cartoons often get smaller in the lightbox view, thus making the feature redundant, for example:

lightboxgif2

@phamann
Copy link
Contributor

phamann commented Jan 5, 2015

👍 Nice refactor!

holder-josh pushed a commit that referenced this pull request Jan 6, 2015
@holder-josh holder-josh merged commit aa5dd72 into master Jan 6, 2015
@holder-josh holder-josh deleted the lightbox-refactor branch January 6, 2015 11:14
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.

2 participants