lato 0.1.44 → 0.1.45

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: 560743ac91d34285c3a1a14369638483ca28d3d2bc6d22227f648c794d7bd61e
4
- data.tar.gz: 92b1bfe12065f7f84bbba9b71f451881c59329da2057b7780697a199a871693a
3
+ metadata.gz: ba6b933633ecf25125ed9a54bd4378ccd2675dc4e5faba0a7bb24e92288a1dc9
4
+ data.tar.gz: '069cf1f1a248778481e77149c3681624b7fd17402629a116515c952bb62bb1da'
5
5
  SHA512:
6
- metadata.gz: 723a1c8ea05d63e3e6c4f1f8b1fb50fbdfa86062627c78da29e2b11cfa0d6a3347aaab1278253a9e03cc0067d88873d0dd3c07138a51f8388c72a0539c948f32
7
- data.tar.gz: d71032b716971f96ca2d8309c1863e1c6a17388ff45ed3af39c35ef2b03896f27a5965f3470d97dc59e4ca7c7b9302515c540ff7be914d364d1328469a0252aa
6
+ metadata.gz: b5b1dd959434a3ccc753b482596fc37d9e6578f1f309b25fc7d490db56ab04931dda5061f48aceec0255720b7268ff7cd8778b9aef4c39761103b904b8f69737
7
+ data.tar.gz: c94d87c207c778834654f5481948b31a681be7c3e74952327f8246cd33f16c4f62f14b4141e5a10c4a74e30eddbabbe0a90077eafc4c173e682d94a9f8024e1b
@@ -84,10 +84,7 @@ export default class extends Controller {
84
84
  this.modalBodyTargets[index].innerHTML = `
85
85
  <turbo-frame id="${options.turboFrame}">
86
86
  <div class="placeholder-glow">
87
- <span class="placeholder placeholder-lg col-12"></span>
88
- <span class="placeholder placeholder-lg col-12"></span>
89
- <span class="placeholder placeholder-lg col-12"></span>
90
- <span class="placeholder placeholder-lg col-12"></span>
87
+ ${Array(options.actionRows).fill().map(() => `<span class="placeholder placeholder-lg col-12"></span>`).join('')}
91
88
  </div>
92
89
  </turbo-frame>
93
90
  `
@@ -115,6 +112,8 @@ export default class extends Controller {
115
112
  options.turboFrame = element.getAttribute('data-turbo-frame')
116
113
  options.actionTitle = element.getAttribute('data-action-title')
117
114
  options.actionSize = element.getAttribute('data-action-size')
115
+ options.actionRows = element.getAttribute('data-action-rows')
116
+ options.actionRows = options.actionRows ? parseInt(options.actionRows) : 4
118
117
  return options
119
118
  }
120
119
 
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.44"
2
+ VERSION = "0.1.45"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.44
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante