@enki-tek/fms-web-components 0.1.56 → 0.1.58
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.
@@ -15,18 +15,18 @@
|
|
15
15
|
const margin = document?.getElementById('margin-alignment');
|
16
16
|
if (sidebar && icon && margin && !sidebarFlag) {
|
17
17
|
sidebar.style.display = 'none';
|
18
|
-
icon.style.marginLeft = '
|
18
|
+
icon.style.marginLeft = '-10px';
|
19
19
|
margin.style.width = '35px';
|
20
20
|
iconName = 'bi-chevron-double-right';
|
21
21
|
} else if (sidebar && icon && margin) {
|
22
22
|
sidebar.style.display = 'block';
|
23
|
-
icon.style.marginLeft = '
|
23
|
+
icon.style.marginLeft = '272px';
|
24
24
|
margin.style.width = '315px';
|
25
25
|
iconName = 'bi-chevron-double-left';
|
26
26
|
}
|
27
27
|
}
|
28
28
|
function checkScreenSize() {
|
29
|
-
if (window.innerWidth < 768) {
|
29
|
+
if (window.innerWidth < 768 ) {
|
30
30
|
hideSidebar = true;
|
31
31
|
} else {
|
32
32
|
hideSidebar = false;
|
@@ -34,6 +34,7 @@
|
|
34
34
|
}
|
35
35
|
onMount(() => {
|
36
36
|
if (typeof window !== 'undefined') {
|
37
|
+
checkScreenSize();
|
37
38
|
window.addEventListener('resize', checkScreenSize);
|
38
39
|
}
|
39
40
|
});
|
@@ -71,7 +72,7 @@
|
|
71
72
|
</div>
|
72
73
|
{#if !hideSidebar}
|
73
74
|
<div id="icon">
|
74
|
-
<button class="btn btn-
|
75
|
+
<button class="btn btn-primary rounded-5 btn-sm" on:click={styleChange}>
|
75
76
|
<i class={iconName} />
|
76
77
|
</button>
|
77
78
|
</div>
|
@@ -182,7 +183,7 @@ ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
|
182
183
|
overflow: auto;
|
183
184
|
}
|
184
185
|
#icon {
|
185
|
-
margin-left:
|
186
|
+
margin-left: 272px;
|
186
187
|
z-index: 1000;
|
187
188
|
position: fixed;
|
188
189
|
top: 90px;
|