maglove-widgets 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maglove/widgets/image.rb +3 -1
- data/maglove-widgets.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4addc24edcdeec736f59ebbc2032990979b83679
|
4
|
+
data.tar.gz: 057fa7fefe67fb7fa677be2292fef240284a02fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/maglove-widgets.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|