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

Remove the aspect-ratio directive from .embed-video CSS class #2134

Closed
wants to merge 1 commit into from

Conversation

seanthegeek
Copy link

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

Not all video is in 16:9 aspect ratio (e.g., vertical video), and forcing that causes the videos to appear small with large black spaces on either side.

Not all video is in 16:9 aspect ratio (e.g., vertical video), and forcing that causes the videos to appear small with large black spaces on either side.

Signed-off-by: Sean Whalen <44679+seanthegeek@users.noreply.github.com>
Copy link
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

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

This is a good point. When designing, I envisioned embedded videos to be in landscape mode, so a 16:9 aspect ratio is sufficient. In the future, a new parameter might be introduced to accept custom classes to accommodate the aspect ratio of short videos.

However, simply removing the original 16:9 aspect ratio in your modification is not advisable, as it will break the existing functionality.

@cotes2020 cotes2020 closed this Dec 22, 2024
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