Skip to content

Commit

Permalink
fix: fixed height in animated-subscibe-button
Browse files Browse the repository at this point in the history
  • Loading branch information
itsarghyadas committed Dec 19, 2024
1 parent e1c6709 commit 8087fff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions registry/default/magicui/animated-subscribe-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export const AnimatedSubscribeButton: React.FC<
<AnimatePresence mode="wait">
{isSubscribed ? (
<motion.button
className="relative flex w-[200px] items-center justify-center overflow-hidden rounded-md bg-white p-[10px] outline outline-1 outline-black"
className="relative flex h-10 w-[200px] items-center justify-center overflow-hidden rounded-md bg-white outline outline-1 outline-black"
onClick={() => setIsSubscribed(false)}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
>
<motion.span
key="action"
className="relative block h-full w-full font-semibold"
className="relative flex h-full w-full items-center justify-center font-semibold"
initial={{ y: -50 }}
animate={{ y: 0 }}
style={{ color: buttonColor }}
Expand All @@ -44,7 +44,7 @@ export const AnimatedSubscribeButton: React.FC<
</motion.button>
) : (
<motion.button
className="relative flex w-[200px] cursor-pointer items-center justify-center rounded-md border-none p-[10px]"
className="relative flex h-10 w-[200px] cursor-pointer items-center justify-center rounded-md border-none"
style={{ backgroundColor: buttonColor, color: buttonTextColor }}
onClick={() => setIsSubscribed(true)}
initial={{ opacity: 0 }}
Expand All @@ -53,7 +53,7 @@ export const AnimatedSubscribeButton: React.FC<
>
<motion.span
key="reaction"
className="relative block font-semibold"
className="relative flex items-center justify-center font-semibold"
initial={{ x: 0 }}
exit={{ x: 50, transition: { duration: 0.1 } }}
>
Expand Down

0 comments on commit 8087fff

Please sign in to comment.