Skip to content

Commit d212887

Browse files
committed
fix: optimize Subscriptions component layout by simplifying JSX structure and improving spacing
1 parent 181d36c commit d212887

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/components/animations/plan.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ const Subscriptions = ({
113113
{activeIdx !== 2 ? (
114114
<motion.div key="collapsed-subs" className="flex gap-2">
115115
{subscriptions.map((sub) => (
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-
</>
116+
<motion.p
117+
key={`sub-${sub}`}
118+
className="text-sm size-full rounded-full flex items-center justify-center relative gap-2"
119+
layoutId={`sub-${sub}`}
120+
>
121+
<span>{sub}</span>
122+
{sub !== subscriptions[subscriptions.length - 1] && (
123+
<span>{" . "}</span>
124+
)}
125+
</motion.p>
126126
))}
127127
</motion.div>
128128
) : (

0 commit comments

Comments
 (0)