agilibox 1.5.6 → 1.5.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b89a1c4a5176d64607c6df1c179a5519858b7c7469bbbefd0d6c128ad1372e5c
4
- data.tar.gz: 31e6c78eafb56b047a8c5af9df93067c3fbbd61958134e9fe36b22d56cdcf1fd
3
+ metadata.gz: 3c195be317aecfd463fb9491f5ed7b27787eb7e78b32680c83bba9edb9a75fce
4
+ data.tar.gz: d3ad2eb30acd27719c9f59c77616bd437968193f806a802fa363530c8bf4085f
5
5
  SHA512:
6
- metadata.gz: 1c01d71e66266e67e467c2359be424c6407136d15dd8fcf4eddfce790f10242d9dcb33c39e69192c8e55d87d85a58d21008ac830df418306ddd0be2eb555fa8b
7
- data.tar.gz: c469f7c350ec36085b4976c728bac1713a567b163ae682b670282f4e38924c4cf7704a188151635534c4b76c3dbdc997c46b208116d18144f5c71177845d6da5
6
+ metadata.gz: d61b75eac0c2df0b538dc7a28dc8884e18666827890cd7946756511eb96ec0877e8d9cf71b589509aa78b087908978a367a4be2464b1947863505815bf8dbeba
7
+ data.tar.gz: 4bb2cd55b28f2e2fa1b1463e77ff75ad8b0007570bd961c451fee938fa1f51fa202f1c74bdd6733454ef3ca7d2be76d377fcb127fe5f8332d91b8fc6f692c2f5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.5.7
6
+ - `download_button` and `export_button` fixes
7
+ - checkboxes-dropdown CSS improvements
8
+ - Change searchbar CSS
9
+
5
10
  ## 1.5.6
6
11
  - Various fixes on filters
7
12
 
@@ -1,5 +1,7 @@
1
1
  .checkboxes-dropdown
2
2
  .checkbox
3
+ display: block
4
+
3
5
  label
4
6
  position: static
5
7
  margin: 0
@@ -10,6 +12,15 @@
10
12
  margin: 0 0.5em 0 0
11
13
  width: auto
12
14
 
15
+ .dropdown-menu
16
+ width: 350px
17
+ max-height: 400px
18
+ max-height: calc(100vh - 300px)
19
+ overflow: auto
20
+
21
+ @media (min-height: 700px)
22
+ max-height: 400px
23
+
13
24
  // Chrome and Safari does not trigger display:none submit buttons on <enter> key press
14
25
  .hidden-submit
15
26
  position: absolute
@@ -21,9 +32,16 @@
21
32
  visibility: hidden
22
33
 
23
34
  form.search
24
- max-width: 20em
35
+ max-width: 25em
36
+
37
+ .search-middle form.search,
38
+ .search-right form.search,
25
39
  margin-left: auto
26
40
 
41
+ .search-left form.search,
42
+ .search-middle form.search,
43
+ margin-right: auto
44
+
27
45
  .form-actions
28
46
  text-align: center
29
47
  margin-top: 45px
@@ -2,7 +2,7 @@ module Agilibox::ButtonHelper
2
2
  def bs_button(url, options = {})
3
3
  action = options.delete(:action)
4
4
  icon = options.delete(:icon)
5
- text = options.delete(:text) || t("actions.#{action}")
5
+ text = options.delete(:text) || ta(action)
6
6
  title = options.delete(:title) || text
7
7
 
8
8
  text = %(#{icon icon} <span class="text">#{text}</span>).html_safe
@@ -59,7 +59,8 @@ module Agilibox::ButtonHelper
59
59
  options = {
60
60
  :icon => :cloud_download_alt,
61
61
  :action => :download,
62
- :download => url,
62
+ :download => File.basename(url),
63
+ :target => "_blank",
63
64
  }.merge(options)
64
65
 
65
66
  bs_button(url, options)
@@ -77,10 +78,9 @@ module Agilibox::ButtonHelper
77
78
  options = {
78
79
  :icon => :download,
79
80
  :action => action,
80
- :download => url,
81
81
  }.merge(options)
82
82
 
83
- bs_button(url, options)
83
+ download_button(url, options)
84
84
  end
85
85
 
86
86
  def import_button(url, options = {})
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n