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

Homepage: ensure video iframe fits narrow views #633

Merged

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Apr 26, 2021

This addresses the main problem causing #632 by ensuring that the video iframe doesn't exceed the view width, whether on desktop or mobile. As a result, the video preview image is cropped under mobile, but this is one of the easiest fixes that doesn't involve further design changes. (The video itself, when viewed under mobile / narrow-views, displays w/o being cropped.)

Note that the video preview image is already being cropped, for example, when viewed under a tablet, so I figured that this solution would likely be acceptable.

Preview: https://deploy-preview-633--nats-io.netlify.app/

Screenshots

Before:

After:

These screenshots are generated from Safari 14.0.3.

@chalin
Copy link
Contributor Author

chalin commented Apr 26, 2021

/reviewer @gcolliso

Btw, let me know if you think that this PR closes #632.

@chalin
Copy link
Contributor Author

chalin commented Apr 26, 2021

I've also checked that this fixes the homepage on mobile (Chrome).

@derekcollison derekcollison requested a review from gcolliso April 26, 2021 17:58
@gcolliso
Copy link
Member

lgtm @chalin

@gcolliso gcolliso merged commit aa1c3f9 into nats-io:master Apr 26, 2021
@chalin chalin deleted the chalin-fix-video-width-for-mobile-2021-04-26 branch April 27, 2021 13:23
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