From 629d145d2ff48711d3b91dbee34f2147430415b5 Mon Sep 17 00:00:00 2001 From: Muhammed-Rahif Date: Wed, 2 Oct 2024 23:43:10 +0530 Subject: [PATCH] fix(statusbar): move statusbar to a new component status bar content animation --- src/App.svelte | 6 ++- src/lib/components/Editors.svelte | 14 ++++-- src/lib/components/MenuBar.svelte | 3 +- src/lib/components/StatusBar.svelte | 49 +++++++++++++++++++ .../ui/menubar/menubar-checkbox-item.svelte | 5 +- .../ui/menubar/menubar-radio-item.svelte | 5 +- .../components/ui/textarea/textarea.svelte | 23 ++++----- 7 files changed, 81 insertions(+), 24 deletions(-) create mode 100644 src/lib/components/StatusBar.svelte diff --git a/src/App.svelte b/src/App.svelte index 7cc8f2f..17fcae4 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -10,8 +10,10 @@ - - +
+ + +
diff --git a/src/lib/components/Editors.svelte b/src/lib/components/Editors.svelte index 99b484d..1602dc9 100644 --- a/src/lib/components/Editors.svelte +++ b/src/lib/components/Editors.svelte @@ -34,15 +34,18 @@ } $: isXS = innerWidth <= 450; $: tabsMode = $editors.length > 1; // compact mode will not available on mobile width (w<=450), also on pc when multiple editors. - $: tabsClass = tabsMode ? 'h-[calc(100%-96px)] w-full' : 'h-[calc(100%-60px)] w-full'; + $: tabsClass = tabsMode ? 'w-full' : 'w-full'; - + {#if tabsMode || isXS}
- + {#each $editors as editor} @@ -64,10 +67,11 @@ {/if} - +