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

Fix image and video overflow on mobile display #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hamasho
Copy link

@hamasho hamasho commented Jun 27, 2022

Currently, if you visit this website on mobile, the layout is broken due to images and the YouTube video overflow.
With this fix, I restricted the max-width of images and the iframe to 100% to prevent unwanted horizontal scroll.

Before After
Jun-28-2022 05-19-10 Jun-28-2022 05-19-20
Before After
image image
image image

max-width: 100%;
}

.video-container {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a class to set the video container responsible.
This fix seems tricky, but I can't find any simple way to make it.

[links]
https://dev.to/deammer/embed-responsive-youtube-videos-in-2021-5dkh
https://www.h3xed.com/web-development/how-to-make-a-responsive-100-width-youtube-iframe-embed

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.

None yet

1 participant