Fix: Move image preview below FloatOver, the popup otherwise hides the image preview
This commit is contained in:
parent
368f9ad0c8
commit
df1fef28c0
1 changed files with 14 additions and 12 deletions
|
@ -385,18 +385,7 @@
|
||||||
<svelte:fragment slot="error" />
|
<svelte:fragment slot="error" />
|
||||||
</LoginToggle>
|
</LoginToggle>
|
||||||
|
|
||||||
<If condition={state.previewedImage.map((i) => i !== undefined)}>
|
|
||||||
<FloatOver extraClasses="p-1" on:close={() => state.previewedImage.setData(undefined)}>
|
|
||||||
<button
|
|
||||||
class="absolute p-0 right-4 top-4 h-8 w-8 rounded-full"
|
|
||||||
on:click={() => previewedImage.setData(undefined)}
|
|
||||||
slot="close-button"
|
|
||||||
>
|
|
||||||
<XCircleIcon />
|
|
||||||
</button>
|
|
||||||
<ImageOperations image={$previewedImage} />
|
|
||||||
</FloatOver>
|
|
||||||
</If>
|
|
||||||
|
|
||||||
{#if $selectedElement !== undefined && $selectedLayer !== undefined && !$selectedLayer.popupInFloatover}
|
{#if $selectedElement !== undefined && $selectedLayer !== undefined && !$selectedLayer.popupInFloatover}
|
||||||
<!-- right modal with the selected element view -->
|
<!-- right modal with the selected element view -->
|
||||||
|
@ -431,6 +420,19 @@
|
||||||
</FloatOver>
|
</FloatOver>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<If condition={state.previewedImage.map((i) => i !== undefined)}>
|
||||||
|
<FloatOver extraClasses="p-1" on:close={() => state.previewedImage.setData(undefined)}>
|
||||||
|
<button
|
||||||
|
class="absolute p-0 right-4 top-4 h-8 w-8 rounded-full"
|
||||||
|
on:click={() => previewedImage.setData(undefined)}
|
||||||
|
slot="close-button"
|
||||||
|
>
|
||||||
|
<XCircleIcon />
|
||||||
|
</button>
|
||||||
|
<ImageOperations image={$previewedImage} />
|
||||||
|
</FloatOver>
|
||||||
|
</If>
|
||||||
|
|
||||||
<If condition={state.guistate.themeIsOpened}>
|
<If condition={state.guistate.themeIsOpened}>
|
||||||
<!-- Theme menu -->
|
<!-- Theme menu -->
|
||||||
<FloatOver on:close={() => state.guistate.themeIsOpened.setData(false)}>
|
<FloatOver on:close={() => state.guistate.themeIsOpened.setData(false)}>
|
||||||
|
|
Loading…
Reference in a new issue