lato 0.1.42 → 0.1.43

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: 457bb704321e6908156f6ba84d8f3a915256fc0ff59358b51e0f1ec5136ac911
4
- data.tar.gz: ede8652651a55487fa9c347a25339dd38680126fe6e1623cd5fe06ad4231070c
3
+ metadata.gz: a34ec33506d24a255aa70857414131f233bcc5c812f3b38f139cd4e02cffc9f6
4
+ data.tar.gz: f88a6b9db1e9956281ead6dfe9858d62eb421158d45484184df1fbe822fbdd53
5
5
  SHA512:
6
- metadata.gz: 4975c3061dd1abf8e266b60361d7312651c13388bb3e038adcb095fdde8df4ad6c6887979d54f3b22b62e26ad280bc7d8587be9efa82bb4c424c963085f01aa6
7
- data.tar.gz: d15b1650e38924b913daa37058610429fab02344e5f3c952f1cd1dee153e11e57f6254bdaca60a880fd6c3fe235959ffc5ff154483883b0a7a254c5d07d21748
6
+ metadata.gz: 9ca0377c4ec076da3438e2021ecdc089671ce9f5275e5531dbf9f772c077f6630728806f3f3d889708c2335cead5951e0c3b5bbe289e4cb58a2d7a38bed739c5
7
+ data.tar.gz: dde9d1be128466a57cfdceac660b5b6ab7cb2dd2b78465e29e7e42339bb7f7d13f6c7e2e7bb6b05cbcb970cb2884aed8913a08181619d0f3c8c1f21e70a0040c
@@ -11,8 +11,13 @@ document.addEventListener("turbo:before-visit", (e) => {
11
11
  })
12
12
 
13
13
  // Close all boostrap modals before page change with turbo
14
+ // NOTE: This is not a good solution, but it seems to work
14
15
  document.addEventListener("turbo:before-visit", (e) => {
15
- document.querySelectorAll('.modal').forEach((modal) => {
16
+ document.querySelectorAll('.modal.show').forEach((modal) => {
16
17
  modal.classList.remove('show')
17
18
  })
19
+
20
+ document.querySelectorAll('.modal-backdrop').forEach((backdrop) => {
21
+ backdrop.remove()
22
+ })
18
23
  })
@@ -81,7 +81,16 @@ export default class extends Controller {
81
81
  const index = this.getFreeModalIndex()
82
82
 
83
83
  if (options.turboFrame && options.turboFrame != '_top') {
84
- this.modalBodyTargets[index].innerHTML = `<turbo-frame id="${options.turboFrame}"></turbo-frame>`
84
+ this.modalBodyTargets[index].innerHTML = `
85
+ <turbo-frame id="${options.turboFrame}">
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>
91
+ </div>
92
+ </turbo-frame>
93
+ `
85
94
 
86
95
  if (options.actionTitle) {
87
96
  this.modalTitleTargets[index].innerHTML = options.actionTitle
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.42"
2
+ VERSION = "0.1.43"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.42
4
+ version: 0.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-09 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails