File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -596,13 +596,23 @@ export function Tasks() {
596596 { isFilterOpen && (
597597 < >
598598 { /* Backdrop */ }
599- < div
600- className = "animate-in fade-in fixed inset-0 z-40 bg-black/60 backdrop-blur-sm duration-200"
599+ < motion . div
600+ initial = { { opacity : 0 } }
601+ animate = { { opacity : 1 } }
602+ exit = { { opacity : 0 } }
603+ transition = { { duration : 0.2 } }
604+ className = "fixed inset-0 z-[51] bg-black/60 backdrop-blur-sm"
601605 onClick = { ( ) => setIsFilterOpen ( false ) }
602606 />
603607
604608 { /* Sidebar */ }
605- < div className = "animate-in slide-in-from-left no-scrollbar fixed left-0 top-0 z-50 h-full w-80 overflow-y-auto bg-white shadow-2xl duration-300 dark:bg-gray-900" >
609+ < motion . div
610+ initial = { { x : '-100%' } }
611+ animate = { { x : 0 } }
612+ exit = { { x : '-100%' } }
613+ transition = { { type : 'spring' , damping : 25 , stiffness : 300 } }
614+ className = "no-scrollbar fixed left-0 top-0 z-[52] h-full w-80 overflow-y-auto bg-white shadow-2xl dark:bg-gray-900"
615+ >
606616 { /* Header */ }
607617 < div className = "sticky top-0 flex items-center justify-between border-b border-gray-200 bg-white px-6 py-4 backdrop-blur-sm dark:border-gray-800 dark:bg-gray-900" >
608618 < div className = "flex items-center gap-3" >
@@ -823,7 +833,7 @@ export function Tasks() {
823833 </ div >
824834 ) }
825835 </ div >
826- </ div >
836+ </ motion . div >
827837 </ >
828838 ) }
829839
You can’t perform that action at this time.
0 commit comments