@marianmeres/stuic 2.60.0 → 2.61.0
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.
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
|
|
51
51
|
let headerHeight = $state(0);
|
|
52
52
|
|
|
53
|
+
// Safari was showing scrollbar so adding 1px extra which solves the problem
|
|
54
|
+
let topOffset = $derived(headerHeight + 1);
|
|
55
|
+
|
|
53
56
|
// pragmatic use case...
|
|
54
57
|
let mainWidth: number = $state(0);
|
|
55
58
|
setContext(APP_SHELL_SIMPLE_MAIN_WIDTH, {
|
|
@@ -77,7 +80,7 @@
|
|
|
77
80
|
bind:this={elRail}
|
|
78
81
|
data-shell="rail"
|
|
79
82
|
style:top="{headerHeight}px"
|
|
80
|
-
style:height="calc(100dvh - {
|
|
83
|
+
style:height="calc(100dvh - {topOffset}px)"
|
|
81
84
|
class={twMerge(
|
|
82
85
|
"sticky shrink-0",
|
|
83
86
|
"flex flex-col items-center",
|
|
@@ -95,7 +98,7 @@
|
|
|
95
98
|
bind:this={elAside}
|
|
96
99
|
data-shell="aside"
|
|
97
100
|
style:top="{headerHeight}px"
|
|
98
|
-
style:height="calc(100dvh - {
|
|
101
|
+
style:height="calc(100dvh - {topOffset}px)"
|
|
99
102
|
class={twMerge(
|
|
100
103
|
"sticky shrink-0",
|
|
101
104
|
"flex flex-col items-center",
|