mediawiki-extensions-EmbedVideo
mediawiki-extensions-EmbedVideo copied to clipboard
If the width is narrow, the problem is that the video comes up on the table or template
Describe the bug If the image is on the left, if the table or template is on the right, the browser is smaller in size or the width is short due to resolution, it will invade the area.
Screenshots

Technical information:
- OS: [e.g. iOS] Windows 11 Pro
- Browser [e.g. chrome, safari] Chrome
- Extension Version [e.g. 22] v3.1.0
- MediaWiki Version [e.g. 1.35.0] 1.39.1
- Host type [e.g. shared hosting] VPS(Ubuntu Server 20.04 LTS), Apache2, PHP7.4
Additional context Please let me know if you need any additional information.
would be great if the default was some sort of max width respecting the size of the parent element
When I set the default width value, if the setting exceeds enough to invade other elements, I wish extension could automatically resize it to the extent that it does not invade other elements.

There's another problem. Press the play button to overlap the element on the right and overlap the element below.
Thanks for the report! Do you have a shareable live setup where we can see this error?
@octfx Sure! Here is a link : https://www.gaonwiki.com/w/Tokyo_Winter_Session (Korean)
@gaon12 this should be fixed in the upcoming release :)
It should be fixed in 3.2.0.
@alistair3149 I apply latest commit(f805da3a8f4eb28dc6b8545ca6daad8801d31231), and remove page cache, but it doesn't work.
Could you try adding |autosize?
@octfx I try add |autosize but it doesn't work.
1.<youtube>IR99DA8KEGU</youtube>

-
{{#ev:youtube|IR99DA8KEGU|autosize}}
-
{{#ev:youtube|IR99DA8KEGU|autoresize=true}}