Упростил логику вычисления размера SocialHyperlink
This commit is contained in:
parent
00590e5823
commit
fcdb7a7e4c
1 changed files with 1 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue