Fix: attempt to fix layers which don't hide

This commit is contained in:
Pieter Vander Vennet 2025-04-23 18:24:53 +02:00
parent 26902c488f
commit 01034b186e
7 changed files with 80 additions and 38 deletions

View file

@ -303,29 +303,35 @@
<TagHint tags={selectedPreset.preset.tags} />
</TitledPanel>
{:else if _globalFilter?.length > 0 && _globalFilter?.length > checkedOfGlobalFilters}
<Tr t={_globalFilter[checkedOfGlobalFilters].onNewPoint?.safetyCheck} cls="mx-12" />
<SubtleButton
on:click={() => {
checkedOfGlobalFilters = checkedOfGlobalFilters + 1
}}
>
<Confirm slot="image" class="h-12 w-12" />
<Tr
slot="message"
t={_globalFilter[checkedOfGlobalFilters].onNewPoint?.confirmAddNew.Subs({
preset: selectedPreset.text,
})}
/>
</SubtleButton>
<SubtleButton
on:click={() => {
globalFilter.setData([])
abort()
}}
>
<Close slot="image" class="h-8 w-8" />
<Tr slot="message" t={Translations.t.general.cancel} />
</SubtleButton>
<TitledPanel>
<div slot="title" class="flex items-center">
<img alt="" aria-hidden="true" src={_globalFilter[checkedOfGlobalFilters].onNewPoint.icon}
class="w-12 h-12 mr-4" />
<Tr t={_globalFilter[checkedOfGlobalFilters].onNewPoint?.safetyCheck} />
</div>
<div class="flex w-full flex-wrap flex-wrap-reverse md:flex-nowrap">
<button class="w-full"
on:click={() => {globalFilter.setData([]);abort()}}
>
<Close slot="image" class="h-8 w-8" />
<Tr t={_globalFilter[checkedOfGlobalFilters].onNewPoint?.cancel ?? Translations.t.general.cancel} />
</button>
<NextButton clss="primary flex-grow w-full"
on:click={() => {checkedOfGlobalFilters = checkedOfGlobalFilters + 1}}>
<Confirm slot="image" class="h-12 w-12" />
<Tr
t={_globalFilter[checkedOfGlobalFilters].onNewPoint?.confirmAddNew.Subs({
preset: selectedPreset.text,
})}
/>
</NextButton>
</div>
</TitledPanel>
{:else if !creating}
<div class="flex h-full flex-col">
<div class="relative h-full min-h-20 w-full p-1">