maglove-widgets 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 746263ec466474066e2161899d8385f063248a94
4
- data.tar.gz: 6994768c760c729479a28f7ee2a3d4ab553e1b99
3
+ metadata.gz: 4addc24edcdeec736f59ebbc2032990979b83679
4
+ data.tar.gz: 057fa7fefe67fb7fa677be2292fef240284a02fb
5
5
  SHA512:
6
- metadata.gz: f186990729d5a19de110a76d3dd2808d1cfc6a62e33514b6da76047e2bdcdbbea65dd7074eb8f44e9e609fb9ae8aa56aa981f1194d070c352dac8eed81409adf
7
- data.tar.gz: 09ce4618e7be8673b7aa647cb6c5711d71c0454ea6d4364f3b20d27c0210b0997a129c6c8ef6059ca8ecb3d29bc6a16a0b17c35ef9a1718c7592e2afca0f2b2c
6
+ metadata.gz: 5900e054ee98eef8e3a25f493d0235fdbcac3513b1a118f636f8c4dfa871b56fb85979dde44784000c5f4fd5b1109f3fb3ac9aacea4a3ea5761904003da42819
7
+ data.tar.gz: ec91d83c85dda3cf65f183d9111c29cca542cf255f5f6ed62d1a888f587b6467615e52d30bf56c2ebec83aecac65656716dedabcdc5eeaceb1f951741205ad3e
@@ -12,6 +12,8 @@ module Maglove
12
12
  source: false,
13
13
  magnify: false,
14
14
  margin_bottom: "0",
15
+ max_width: "100%",
16
+ min_width: "0",
15
17
  tooltip_icon: "bullhorn",
16
18
  tooltip_text_alignment: "justify",
17
19
  tooltip_text_size: "medium",
@@ -34,7 +36,7 @@ module Maglove
34
36
  module Helpers
35
37
  def image_widget(options = {})
36
38
  widget_block(Widgets::Image.new(options)) do |widget|
37
- haml_tag :div, class: widget.image_classes, style: style_string(widget.options, :margin, :padding) do
39
+ haml_tag :div, class: widget.image_classes, style: "min-width: #{widget.options[:min_width]}; max-width: #{widget.options[:max_width]}; #{style_string(widget.options, :margin, :padding)}" do
38
40
  if widget.popup?
39
41
  haml_tag :i, class: "popup fa fa-lg fa-#{widget.options[:tooltip_icon]}"
40
42
  haml_tag :div, class: "popup-box", style: "font-size: #{widget.options[:tooltip_text_size]}, text-align: #{widget.options[:tooltip_text_alignment]};" do
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "maglove-widgets"
6
- s.version = "1.0.5"
6
+ s.version = "1.0.6"
7
7
  s.licenses = ["BSD-3-Clause"]
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Tobias Strebitzer"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove-widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler