Move side panel into correct DOM position

This commit is contained in:
Andrew Kingston 2024-08-14 10:16:01 +01:00
parent d36fef5c86
commit 83e7b2d3e2
No known key found for this signature in database
1 changed files with 16 additions and 14 deletions

View File

@ -322,20 +322,22 @@
<slot />
</div>
</div>
</div>
<div
id="side-panel-container"
class:open={$sidePanelStore.open}
use:clickOutside={autoCloseSidePanel ? sidePanelStore.actions.close : null}
class:builder={$builderStore.inBuilder}
>
<div class="side-panel-header">
<Icon
color="var(--spectrum-global-color-gray-600)"
name="RailRightClose"
hoverable
on:click={sidePanelStore.actions.close}
/>
<div
id="side-panel-container"
class:open={$sidePanelStore.open}
use:clickOutside={autoCloseSidePanel
? sidePanelStore.actions.close
: null}
class:builder={$builderStore.inBuilder}
>
<div class="side-panel-header">
<Icon
color="var(--spectrum-global-color-gray-600)"
name="RailRightClose"
hoverable
on:click={sidePanelStore.actions.close}
/>
</div>
</div>
</div>
</div>