diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index fe892951fb..9b85807ef6 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -32,15 +32,9 @@ export let isSub: boolean = true export let isAside: boolean = true export let isCustomAttr: boolean = true - export let minimize: boolean = false - - let docWidth: number = 0 - $: minimize = docWidth < 1280 && docWidth >= 1024 - $: needHeader = $$slots.header || minimize || isHeader - - +
{#if $$slots.navigator} @@ -72,23 +66,17 @@ - {#if $$slots.header || ($$slots.actions && minimize)} + {#if $$slots.header}
{#if $$slots.header}{/if}
- {#if $$slots.actions && minimize} -
- - {/if}
{/if} {#if $$slots['custom-attributes'] && isCustomAttr} {#if isSub}
{/if} - {:else if $$slots.attributes && minimize}
- -
{/if} + {/if} diff --git a/packages/ui/src/components/Panel.svelte b/packages/ui/src/components/Panel.svelte index ea8f141563..3388034c32 100644 --- a/packages/ui/src/components/Panel.svelte +++ b/packages/ui/src/components/Panel.svelte @@ -25,15 +25,13 @@ let asideFloat: boolean = false let asideShown: boolean = false - let docWidth: number - $: if (docWidth < 1024 && !asideFloat) asideFloat = true - $: if (docWidth >= 1024 && asideFloat) { + $: if (panelWidth < 900 && !asideFloat) asideFloat = true + $: if (panelWidth >= 900 && asideFloat) { asideFloat = false asideShown = false } -