Timothy Jaeryang Baek пре 2 месеци
родитељ
комит
d6326549d6
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 1 1
      src/lib/components/layout/Sidebar.svelte
  2. 3 0
      tailwind.config.js

+ 1 - 1
src/lib/components/layout/Sidebar.svelte

@@ -666,7 +666,7 @@
 			? 'bg-gray-50 dark:bg-gray-950 z-50'
 			? 'bg-gray-50 dark:bg-gray-950 z-50'
 			: ' bg-transparent z-0 '} {$isApp
 			: ' bg-transparent z-0 '} {$isApp
 			? `ml-[4.5rem] md:ml-0 `
 			? `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' }}
 		transition:slide={{ duration: 200, axis: 'x' }}
 		data-state={$showSidebar}
 		data-state={$showSidebar}

+ 3 - 0
tailwind.config.js

@@ -36,6 +36,9 @@ export default {
 			},
 			},
 			padding: {
 			padding: {
 				'safe-bottom': 'env(safe-area-inset-bottom)'
 				'safe-bottom': 'env(safe-area-inset-bottom)'
+			},
+			transitionProperty: {
+				width: 'width'
 			}
 			}
 		}
 		}
 	},
 	},