Unify icon appearance in user cards
authorMarcel Werk <burntime@woltlab.com>
Fri, 16 Aug 2024 09:29:50 +0000 (11:29 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 16 Aug 2024 09:29:50 +0000 (11:29 +0200)
ref https://www.woltlab.com/community/thread/307714-bad-icon-members-list/

com.woltlab.wcf/templates/userCard.tpl

index 63ae0713f4a1ec8ad6ffa2d513370ee0473cac8e..007476b1e042b5f17bf271104f122ff2937dd9ee 100644 (file)
                        <div class="userCard__buttons">
                                {content}
                                        {if $user->homepage && $user->homepage != 'http://'}
-                                               <a class="userCard__button jsTooltip" title="{lang}wcf.user.option.homepage{/lang}" {anchorAttributes url=$user->homepage appendClassname=false isUgc=true}>{icon name='house' size=24}</a>
+                                               <a class="userCard__button jsTooltip" title="{lang}wcf.user.option.homepage{/lang}" {anchorAttributes url=$user->homepage appendClassname=false isUgc=true}>{icon name='house' size=24 type='solid'}</a>
                                        {/if}
                                        {if $user->userID != $__wcf->user->userID}
                                                {if $user->isAccessible('canViewEmailAddress')}
-                                                       <a class="userCard__button jsTooltip" href="mailto:{@$user->getEncodedEmail()}" title="{lang}wcf.user.button.mail{/lang}">{icon name='envelope' size=24}</a>
+                                                       <a class="userCard__button jsTooltip" href="mailto:{@$user->getEncodedEmail()}" title="{lang}wcf.user.button.mail{/lang}">{icon name='envelope' size=24 type='solid'}</a>
                                                {/if}
                                        {/if}
                                        {if $__wcf->user->userID && $user->userID != $__wcf->user->userID}
@@ -59,7 +59,7 @@
                                                                        data-follow-user="{link controller='UserFollow' id=$user->userID}{/link}"
                                                                        class="userCard__button jsTooltip"
                                                                        title="{lang}wcf.user.button.unfollow{/lang}"
-                                                               >{icon name='circle-minus' size=24}</button>
+                                                               >{icon name='circle-minus' size=24 type='solid'}</button>
                                                        {else}
                                                                <button
                                                                        type="button"
@@ -67,7 +67,7 @@
                                                                        data-follow-user="{link controller='UserFollow' id=$user->userID}{/link}"
                                                                        class="userCard__button jsTooltip"
                                                                        title="{lang}wcf.user.button.follow{/lang}"
-                                                               >{icon name='circle-plus' size=24}</button>
+                                                               >{icon name='circle-plus' size=24 type='solid'}</button>
                                                        {/if}
                                                {/if}