Упростил логику вычисления размера SocialHyperlink

This commit is contained in:
Иван Кузьменко 2025-07-13 10:33:25 +03:00
parent 00590e5823
commit fcdb7a7e4c

View file

@ -13,9 +13,7 @@
<a {href} class="{className} group inline-block" target={isLinkLocal(href) ? '_self' : '_blank'}> <a {href} class="{className} group inline-block" target={isLinkLocal(href) ? '_self' : '_blank'}>
<span <span
class="inline-block {sm.current class="inline-block size-6 rounded-sm bg-emerald-800 p-0.5 align-bottom transition-all group-hover:scale-110 sm:size-8 sm:rounded-xl sm:p-1"
? 'size-8 rounded-xl p-1'
: 'size-6 rounded-sm p-0.5'} bg-emerald-800 align-bottom transition-all group-hover:scale-110"
> >
<HoverIcon src={customIcon ?? tryGetIcon(href)} text={href} size={sm.current ? 24 : 20} /> <HoverIcon src={customIcon ?? tryGetIcon(href)} text={href} size={sm.current ? 24 : 20} />
</span> </span>