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

Auto resize videos? #44

Open
Elodie-Praxinos opened this issue Aug 29, 2024 · 3 comments
Open

Auto resize videos? #44

Elodie-Praxinos opened this issue Aug 29, 2024 · 3 comments

Comments

@Elodie-Praxinos
Copy link

I could not find a way to make the video resize automatically, depending on the display of the guide.
Is it possible?

@sciencewhiz
Copy link
Contributor

We added the following to our CSS to resize videos that are wider then the screen

/*
* Prevent video containers from spilling over the edges of the main panel.
* This matches the built-in style for `.rst-content img`
*/
.rst-content video {
	max-width: 100%;
	height: auto;
}

@Elodie-Praxinos
Copy link
Author

Elodie-Praxinos commented Oct 29, 2024

Thanks! I'll try this!

  • Edit: it's not working, but I supposed it's not available yet?

@12rambau
Copy link
Member

12rambau commented Jan 3, 2025

This modification is released since v0.3.1 can you confirm it's the one you have installed ?

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

No branches or pull requests

3 participants