forked from MapComplete/MapComplete
Fix: attempt to fix layers which don't hide
This commit is contained in:
parent
26902c488f
commit
01034b186e
7 changed files with 80 additions and 38 deletions
|
|
@ -72,6 +72,10 @@
|
|||
top = Math.max(top, 0)
|
||||
}
|
||||
|
||||
value.addCallbackAndRun(level => {
|
||||
forceIndex = floors.data.indexOf(level)
|
||||
})
|
||||
|
||||
Stores.Chronic(50).addCallback(() => stabilize())
|
||||
floors.addCallback((floors) => {
|
||||
forceIndex = floors.findIndex((s) => s === value.data)
|
||||
|
|
@ -103,7 +107,7 @@
|
|||
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)">
|
||||
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 right-0 h-full w-min">
|
||||
{#each $floors as floor, i}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue