Skip to content

Commit 181d36c

Browse files
committed
fix: reduce transition duration in Plan component and improve Subscriptions layout
1 parent 58686ed commit 181d36c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/components/animations/plan.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const Plan = () => {
7171
initial={{ opacity: 0, scale: 0 }}
7272
animate={{ opacity: 1, scale: 1 }}
7373
exit={{ opacity: 0, scale: 0 }}
74-
transition={{ duration: 0.1 }}
74+
transition={{ duration: 0.05 }}
7575
className={cn("text-sm text-center font-bold", {
7676
"text-primary-foreground": activeIdx === plan.id,
7777
})}
@@ -113,13 +113,16 @@ const Subscriptions = ({
113113
{activeIdx !== 2 ? (
114114
<motion.div key="collapsed-subs" className="flex gap-2">
115115
{subscriptions.map((sub) => (
116-
<motion.p
117-
key={`sub-${sub}`}
118-
className="text-sm size-full rounded-full flex items-center justify-center relative"
119-
layoutId={`sub-${sub}`}
120-
>
121-
{sub}
122-
</motion.p>
116+
<>
117+
<motion.p
118+
key={`sub-${sub}`}
119+
className="text-sm size-full rounded-full flex items-center justify-center relative"
120+
layoutId={`sub-${sub}`}
121+
>
122+
{sub}
123+
</motion.p>
124+
<span>{" . "}</span>
125+
</>
123126
))}
124127
</motion.div>
125128
) : (

0 commit comments

Comments
 (0)