Fix issue with drawer positioning when nesting drawers with no target
This commit is contained in:
parent
70821182fe
commit
1eafd5e843
|
@ -172,12 +172,7 @@
|
||||||
|
|
||||||
{#if visible}
|
{#if visible}
|
||||||
<Portal target=".modal-container">
|
<Portal target=".modal-container">
|
||||||
<div class="drawer-container">
|
<div class="underlay" class:hidden={!$modal} transition:drawerFade|local />
|
||||||
<div
|
|
||||||
class="underlay"
|
|
||||||
class:hidden={!$modal}
|
|
||||||
transition:drawerFade|local
|
|
||||||
/>
|
|
||||||
<div
|
<div
|
||||||
class="drawer"
|
class="drawer"
|
||||||
class:stacked={depth > 0}
|
class:stacked={depth > 0}
|
||||||
|
@ -209,7 +204,6 @@
|
||||||
<slot name="body" />
|
<slot name="body" />
|
||||||
<div class="overlay" class:hidden={$modal || depth === 0} />
|
<div class="overlay" class:hidden={$modal || depth === 0} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</Portal>
|
</Portal>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue