diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index f0982653b6..7652eca26a 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -47,19 +47,22 @@ = 900 || isProperties} + bind:panelWidth + bind:innerWidth + isProperties={innerWidth >= 500 || isProperties} isSubtitle={innerWidth < 900 || isSubtitle} on:close > - {#if $$slots['subtitle']}{/if} + {#if $$slots.subtitle}{/if} - {#if $$slots['properties']}{/if} + {#if $$slots.properties}{/if} @@ -81,12 +84,7 @@ {#if allowFullSize} -