satis 2.1.38 → 2.1.39
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2bb03a6dd505a66bab8954f44688caae478ea05d597693fe98d78214ddad550
|
4
|
+
data.tar.gz: 6da9d6e93810ee42bb5ba48f7c3ac7e15d0a36d640555bc0489c2339934cf96e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
3
|
-
|
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
|
20
|
-
topbar
|
21
|
-
page_body
|
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
|
-
|
26
|
-
|
27
|
-
|
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