CSIS-iLab / reconasia_wp

The WordPress site for Reconnecting Asia.
0 stars 1 forks source link

Interactive block width #89

Closed urchykli closed 3 years ago

urchykli commented 3 years ago

Set width: 100% !important to override the inline width that is being applied to the block. I added both of you as reviewers, since I couldn't figure out why the inline width was being added, but maybe you can.

jnschrag commented 3 years ago

This gets added because there's a JS function in the vendor files that is automatically applied to all video & iFrame elements to size them intrinsically. We can stop that from applying by adding a class to the iFrame, modifying the JS code, or doing exactly what you did here. :)