poe-svelte-ui-lib 1.2.28 → 1.2.29
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.
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
>
|
|
88
88
|
{#if isRange}
|
|
89
89
|
{@const userAgent = navigator.userAgent}
|
|
90
|
+
|
|
90
91
|
<div class="flex w-full">
|
|
91
92
|
<input
|
|
92
93
|
type="range"
|
|
@@ -133,7 +134,7 @@
|
|
|
133
134
|
`[&::-moz-range-thumb]:shadow-[calc(100rem+0.5rem)_0_0_100rem]
|
|
134
135
|
[&::-webkit-slider-thumb]:shadow-[calc(100rem+0.5rem)_0_0_100rem]`,
|
|
135
136
|
)}
|
|
136
|
-
style=
|
|
137
|
+
style="color: var(--bg-color); flex-basis: {`calc(${(centerNum / number.maxNum) * 100}% + 2rem + 5px)`};"
|
|
137
138
|
/>
|
|
138
139
|
<input
|
|
139
140
|
type="range"
|
|
@@ -151,7 +152,7 @@
|
|
|
151
152
|
onmousedown={() => (activeRound = 'floor')}
|
|
152
153
|
{disabled}
|
|
153
154
|
class={twMerge(
|
|
154
|
-
`
|
|
155
|
+
`basis-[calc(${100 - (centerNum / number.maxNum) * 100}%+2rem+5px)] h-8 w-full appearance-none overflow-hidden
|
|
155
156
|
accent-(--back-color)
|
|
156
157
|
[&::-webkit-slider-runnable-track]:rounded-r-full
|
|
157
158
|
[&::-webkit-slider-runnable-track]:bg-(--gray-color)
|
|
@@ -180,7 +181,7 @@
|
|
|
180
181
|
`[&::-moz-range-thumb]:shadow-[calc(100rem*-1-0.5rem)_0_0_100rem]
|
|
181
182
|
[&::-webkit-slider-thumb]:shadow-[calc(100rem*-1-0.5rem)_0_0_100rem]`,
|
|
182
183
|
)}
|
|
183
|
-
style=
|
|
184
|
+
style="color: var(--bg-color); flex-basis: {`calc(${(1 - centerNum / number.maxNum) * 100}% + 2rem + 5px)`};"
|
|
184
185
|
/>
|
|
185
186
|
</div>
|
|
186
187
|
{:else}
|
|
@@ -195,7 +196,7 @@
|
|
|
195
196
|
bind:value={singleValue}
|
|
196
197
|
oninput={() => onUpdate(singleValue)}
|
|
197
198
|
class={twMerge(
|
|
198
|
-
`
|
|
199
|
+
` h-8 w-full appearance-none overflow-hidden rounded-full accent-(--back-color)
|
|
199
200
|
[&::-webkit-slider-runnable-track]:rounded-full
|
|
200
201
|
[&::-webkit-slider-runnable-track]:bg-(--gray-color)
|
|
201
202
|
[&::-webkit-slider-thumb]:relative
|