lib/maglove/widgets/video.rb in maglove-widgets-1.0.3 vs lib/maglove/widgets/video.rb in maglove-widgets-1.0.4
- old
+ new
@@ -21,10 +21,10 @@
end
module Helpers
def video_widget(options = {})
widget_block(Widgets::Video.new(options)) do |widget|
- haml_tag :div, class: "video-widget player-style-#{widget.options[:style]}" do
+ haml_tag :div, style: "margin-bottom: #{widget.options[:margin_bottom]}", class: "video-widget player-style-#{widget.options[:style]}" do
haml_tag :video, controls: true, poster: widget.options[:poster], style: "width: 100%" do
haml_tag :source, src: widget.options[:source].to_s, type: "video/mp4"
end
end
end