fix: video width overflow issue

This commit is contained in:
jeffreytse 2020-04-29 02:56:52 +08:00
parent d168742880
commit 169bdf1343

View File

@ -75,6 +75,7 @@ module Jekyll::Spaceship
data[:width] = 600 if data[:width].nil?
data[:height] = 400 if data[:height].nil?
style = "max-width: 100%" if width.nil?
width = data[:width] if width.nil?
height = data[:height] if height.nil?
@ -84,6 +85,7 @@ module Jekyll::Spaceship
title=\"#{title}\" \
width=\"#{width}\" \
height=\"#{height}\" \
style=\"#{style}\" \
frameborder=\"0\" \
allowfullscreen=\"\">\
</iframe>"