Snap - Video resize

Snap - Video resize

by Aurelien DARIE -
Number of replies: 5

Hi all,

I would like to "force" a resize for a video in the theme snap with such command :  <video width="..." height="..."> however it is being overruled. How could I change it ? 

moodle version : 3.3

Regards

Attachment Screen Shot 2018-04-08 at 10.26.07.png
Average of ratings: -
In reply to Aurelien DARIE

Re: Snap - Video resize

by Stuart Lamour -
Picture of Plugin developers

Hi,

videos are responsive in snap, so will fill their container element.

I have not tried it but you could add a div around the video with a max-width?

Cheers

Stuart

In reply to Stuart Lamour

Re: Snap - Video resize

by Aurelien DARIE -

Hi Stuart,

Thank you for your answer. 

Adding a div max-width around the video works only in the editor though.


Thanks

In reply to Aurelien DARIE

Re: Snap - Video resize

by Stuart Lamour -
Picture of Plugin developers

Try use !important in your inline styles - so max-width: 600px !important etc..

In reply to Stuart Lamour

Re: Snap - Video resize

by Aurelien DARIE -

Works perfectly now, thank you Stuart.

In reply to Aurelien DARIE

Re: Snap - Video resize

by Stuart Lamour -
Picture of Plugin developers

cool - be sure and check your inline styles don't break the responsive behaviour for tablets/mobile etc ;)