From 1eafd5e8437ca66096f54ff017f62530528f3bb7 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 13 Mar 2024 09:22:13 +0000 Subject: [PATCH] Fix issue with drawer positioning when nesting drawers with no target --- packages/bbui/src/Drawer/Drawer.svelte | 66 ++++++++++++-------------- 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte index 8bb11b833a..04e678c4e5 100644 --- a/packages/bbui/src/Drawer/Drawer.svelte +++ b/packages/bbui/src/Drawer/Drawer.svelte @@ -172,43 +172,37 @@ {#if visible} -
-
-
0} - class:modal={$modal} - transition:drawerSlide|local - {style} - > -
- {#if $$slots.title} - - {:else} -
{title || "Bindings"}
+
+
0} + class:modal={$modal} + transition:drawerSlide|local + {style} + > +
+ {#if $$slots.title} + + {:else} +
{title || "Bindings"}
+ {/if} +
+ + + {#if $resizable} + modal.set(!$modal)} + > + + {/if} -
- - - {#if $resizable} - modal.set(!$modal)} - > - - - {/if} -
-
- -
-
+
+
+ +
{/if}