1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-08 23:39:46 +01:00

youtube.js: make video iframe spacing equal to image spacing

This commit is contained in:
Zankaria 2025-02-04 21:43:38 +01:00 committed by Zankaria
parent 7b6e475bd0
commit 9e57f8978a

View File

@ -31,7 +31,7 @@ onReady(function() {
let contents = videoNode.contents();
let videoId = videoNode.data('video');
let span = $("<span>[Embed]</span>");
let embedNode = $('<iframe style="float:left;margin: 10px 20px" type="text/html" '+
let embedNode = $('<iframe style="float:left;padding: 0 20px 0 0;margin: 0.2em 0.2em 0.8em 0.2em" type="text/html" '+
'width="360" height="270" src="//www.youtube.com/embed/' + videoId +
'?autoplay=1&html5=1" allowfullscreen frameborder="0"/>');
span.click(function() {