kaltura / moodle_plugin

8 stars 37 forks source link

kaltura iframe fixed at 900px #404

Open thepurpleblob opened 1 year ago

thepurpleblob commented 1 year ago

This particularly applies when adding a Kaltura instance in a 'label' using the editor plugin.

The filter converts the link to an iframe with a (fixed) width of 900px

Screenshot 2023-07-05 at 09 40 23

However, this causes the iframe to "bleed out" of the div container on smaller screens. Especially on Moodle 4+ which has quite a narrow width for content in many course formats.

Simply changing this to 100% seems to sort it.

I've had a look but can't see where 900px comes from in the code. I'm assuming it's returned in the API.