17,099
edits
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
return; | return; | ||
videos.each(function(ii, video) { | videos.each(function(ii, video) { | ||
$(video).parent().css({'width': '100%', 'max-width': 'calc(100% - 30px)', 'margin': 'auto'}); | $(video).parent().css({'width': '100%', 'min-width': '125px', 'max-width': 'calc(100% - 30px)', 'margin': 'auto'}); | ||
}); | }); | ||
var height = 0; | var height = 0; | ||
Line 28: | Line 28: | ||
videos.each(function(ii, video) { | videos.each(function(ii, video) { | ||
var maxHeight = height - 30; | var maxHeight = height - 30; | ||
$(video).css( | $(video).css('max-height', maxHeight); | ||
$(video).parent().parent().css({'height': height, 'display': 'flex'}); | $(video).parent().parent().css({'height': height, 'display': 'flex'}); | ||
}); | }); | ||
}); | }); | ||
}); | }); |