We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here's a suggestion: currently YouTube embeds on mobile look strange (oddly tall) with the default suggested copy/paste embed code.
So from this website, I borrowed it and it works quite well:
<div style="width: 100%; min-width: 400px; max-width: 800px;"> <div style="position: relative; width: 100%; overflow: hidden; padding-top: 56.25%;"> <p><iframe style="position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none;" src="https://www.youtube.com/embed/38uzvN-plOg" title="YouTube video player" width="560" height="315" allowfullscreen="allowfullscreen" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe></p> </div> </div>
I've been using it basically as-is for post embeds, maybe it could help someone else.
The text was updated successfully, but these errors were encountered:
It would be a destructive change, but personally I feel it would be better to use this component. https://astro-embed.netlify.app/components/youtube/
Sorry, something went wrong.
No branches or pull requests
Here's a suggestion: currently YouTube embeds on mobile look strange (oddly tall) with the default suggested copy/paste embed code.
So from this website, I borrowed it and it works quite well:
I've been using it basically as-is for post embeds, maybe it could help someone else.
The text was updated successfully, but these errors were encountered: