satis 2.1.38 → 2.1.39

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
  SHA256:
3
- metadata.gz: d3fed65fcb359f6ba8dadd08fc92904d92022259a2b2a550ac84b78fdf637c93
4
- data.tar.gz: 16845323c16d4f8598e4e3bce83a49765fbcc360fccc333e6b39ecb8f9c35142
3
+ metadata.gz: b2bb03a6dd505a66bab8954f44688caae478ea05d597693fe98d78214ddad550
4
+ data.tar.gz: 6da9d6e93810ee42bb5ba48f7c3ac7e15d0a36d640555bc0489c2339934cf96e
5
5
  SHA512:
6
- metadata.gz: 7eee312b5220966b98478a0648bbeda0f1a032ed31e92dfdb0c95a808de7b609adf50246e3159cd57d155fc0481be62136bafc6a987edcf5e4299e88c053da6b
7
- data.tar.gz: a386c3b75268f886a93f586772437824c977538b45d3782469acc42764ae5fad6d5d8aba94b5f0b3961664bac06ea81b0bfab20bb9d9674d1ff46a95609b7cd6
6
+ metadata.gz: 50e71afa728f3f64ebdc1629d4fff2ead6359ab896ac97d6367f0b72edbf5148db10cf24d552593ca0d8a0e706c7d6a712d1621df0819e54bcb71e8c0879e8e3
7
+ data.tar.gz: 7ddbeb16decb994c3f2b12603bfb039ef85c355557b8d685b3bb1da87be18cda38896605cbc17db6617655bb2539943bc5574342b567db7339cced34378b260a
@@ -1,4 +1,4 @@
1
- .w-full.bg-gray-200.rounded-full.dark:bg-gray-700 class=size
2
- .bg-blue-600.rounded-full.font-medium.text-blue-100.text-center.leading-none class="#{text_size} #{padding} #{size}" style="width: #{percentage}%"
3
- = label
4
-
1
+ .w-full.bg-gray-200.rounded-full.text-center.relative.dark:bg-gray-700.text-gray-800.dark:text-gray-200 class=size
2
+ .bg-blue-500.dark:bg-blue-600.rounded-full.font-medium.text-center.leading-none class="#{text_size} #{padding} #{size}" style="width: #{percentage}%"
3
+ .absolute.inset-0.flex.items-center.justify-center
4
+ = label
@@ -16,22 +16,23 @@ export default class SidebarComponentController extends ApplicationController {
16
16
  // Check stored state and apply it
17
17
  const isClosed = sessionStorage.getItem('sidebarClosed') === 'true';
18
18
  if (isClosed) {
19
- sidebar_collapse.classList.add("close");
20
- topbar.classList.add("close");
21
- page_body.classList.add("close");
19
+ sidebar_collapse?.classList.add("close");
20
+ topbar?.classList.add("close");
21
+ page_body?.classList.add("close");
22
22
  }
23
23
 
24
+ if (sidebarBtn) {
25
+ sidebarBtn.addEventListener("click", () => {
26
+ const isClosed = sidebar_collapse.classList.toggle("close");
27
+ topbar.classList.toggle("close");
28
+ page_body.classList.toggle("close");
24
29
 
25
- sidebarBtn.addEventListener("click", () => {
26
- const isClosed = sidebar_collapse.classList.toggle("close");
27
- topbar.classList.toggle("close");
28
- page_body.classList.toggle("close");
29
-
30
- // Save the current state to sessionStorage
31
- sessionStorage.setItem('sidebarClosed', isClosed);
32
- });
30
+ // Save the current state to sessionStorage
31
+ sessionStorage.setItem('sidebarClosed', isClosed);
32
+ });
33
33
  }
34
34
  }
35
+ }
35
36
 
36
37
  // Ensure the function runs on every Turbo page load
37
38
  document.addEventListener("turbo:load", () => {
data/lib/satis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "2.1.38"
2
+ VERSION = "2.1.39"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.38
4
+ version: 2.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt