forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
612e71a4b6
commit
511d20eb34
245 changed files with 43884 additions and 8661 deletions
|
|
@ -12,7 +12,10 @@
|
|||
const HEIGHT = 40
|
||||
const WIDTH = HEIGHT
|
||||
|
||||
let initialIndex = Math.max(0, floors?.data?.findIndex((f) => f === value?.data) ?? floors?.data?.length + 1)
|
||||
let initialIndex = Math.max(
|
||||
0,
|
||||
floors?.data?.findIndex((f) => f === value?.data) ?? floors?.data?.length + 1
|
||||
)
|
||||
let index: UIEventSource<number> = new UIEventSource<number>(initialIndex)
|
||||
let forceIndex: number | undefined = undefined
|
||||
let top = Math.max(0, initialIndex) * HEIGHT
|
||||
|
|
@ -72,7 +75,7 @@
|
|||
top = Math.max(top, 0)
|
||||
}
|
||||
|
||||
value.addCallbackAndRun(level => {
|
||||
value.addCallbackAndRun((level) => {
|
||||
forceIndex = floors.data.indexOf(level)
|
||||
})
|
||||
|
||||
|
|
@ -106,9 +109,10 @@
|
|||
class="relative"
|
||||
style={`height: calc(${HEIGHT}px * ${$floors.length}); width: calc( 96px )`}
|
||||
>
|
||||
<div class="absolute top-0 left-0 rounded-xl"
|
||||
style="margin: -0.25rem; width: calc(100% + 0.5rem); height: calc(100% + 0.5rem); background: rgba(255,255,255, 0.65); backdrop-filter: blur(2px); ">
|
||||
</div>
|
||||
<div
|
||||
class="absolute left-0 top-0 rounded-xl"
|
||||
style="margin: -0.25rem; width: calc(100% + 0.5rem); height: calc(100% + 0.5rem); background: rgba(255,255,255, 0.65); backdrop-filter: blur(2px); "
|
||||
/>
|
||||
<div class="absolute right-0 h-full w-min">
|
||||
{#each $floors as floor, i}
|
||||
<button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue