Skip to content

Commit 3e58bc0

Browse files
authored
fix(react-email): file tree animation safari (#1195)
1 parent 11b8f5a commit 3e58bc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-email/src/components/sidebar/sidebar-directory-children.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const SidebarDirectoryChildren = (props: {
7575
<motion.span
7676
animate={{ x: 0, opacity: 1 }}
7777
className={cn(
78-
'text-[14px] flex items-center align-middle pl-3 h-8 max-w-full rounded-md text-slate-11 relative transition ease-in-out duration-200',
78+
'text-[14px] flex items-center align-middle pl-3 h-8 max-w-full rounded-md text-slate-11 relative transition-colors',
7979
{
8080
'text-cyan-11': isCurrentPage,
8181
'hover:text-slate-12':
@@ -84,7 +84,7 @@ export const SidebarDirectoryChildren = (props: {
8484
)}
8585
initial={{ x: -10 + -index * 1.5, opacity: 0 }}
8686
transition={{
87-
x: { delay: 0.03 * index, duration: 0.05 },
87+
x: { delay: 0.03 * index, duration: 0.2 },
8888
opacity: { delay: 0.03 * index, duration: 0.2 },
8989
}}
9090
>

0 commit comments

Comments
 (0)