Skip to content

Commit 8a4dac6

Browse files
committed
refactor: avoid shrinking of arrow in LinkWithArrow component
1 parent 8d8a53e commit 8a4dac6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ui/LinkWithArrow.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export default function LinkWithArrow({ className, href, children, ...props }: R
1414
{...props}
1515
>
1616
{children}
17-
<ArrowUpRight className="w-4 h-4 md:w-5 md:h-5 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1"/>
17+
<ArrowUpRight className={cn(
18+
"w-4 h-4 md:w-5 md:h-5",
19+
"transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1",
20+
"flex-shrink-0"
21+
)}/>
1822
</a>
1923
);
2024
}

0 commit comments

Comments
 (0)