From d6326549d6d8c8d2875a00148effe9f9b0ba9fe3 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 8 Aug 2025 11:57:07 +0400 Subject: [PATCH] refac --- src/lib/components/layout/Sidebar.svelte | 2 +- tailwind.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index f8d192458..7ef8c5325 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -666,7 +666,7 @@ ? 'bg-gray-50 dark:bg-gray-950 z-50' : ' bg-transparent z-0 '} {$isApp ? `ml-[4.5rem] md:ml-0 ` - : 'transition-[width] duration-300 '} shrink-0 text-gray-900 dark:text-gray-200 text-sm fixed top-0 left-0 overflow-x-hidden + : ' transition-all duration-300 '} shrink-0 text-gray-900 dark:text-gray-200 text-sm fixed top-0 left-0 overflow-x-hidden " transition:slide={{ duration: 200, axis: 'x' }} data-state={$showSidebar} diff --git a/tailwind.config.js b/tailwind.config.js index ecb353a73..9171dc760 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -36,6 +36,9 @@ export default { }, padding: { 'safe-bottom': 'env(safe-area-inset-bottom)' + }, + transitionProperty: { + width: 'width' } } },