Added star to avatar for PRO accounts
This commit is contained in:
parent
dba7159082
commit
d151d67085
@ -5,6 +5,10 @@ component CustomAvatar(user *arn.User, link string, title string)
|
||||
a.user.tip(href=link, aria-label=title)
|
||||
AvatarNoLink(user)
|
||||
|
||||
if user.IsPro()
|
||||
.user-pro-icon
|
||||
RawIcon("star")
|
||||
|
||||
component AvatarNoLink(user *arn.User)
|
||||
if user.HasAvatar()
|
||||
img.user-image.lazy(data-src=user.AvatarLink("small"), data-webp="true", alt=user.Nick)
|
||||
|
@ -3,7 +3,7 @@
|
||||
justify-content center
|
||||
border-radius ui-element-border-radius
|
||||
|
||||
.user-image
|
||||
.user
|
||||
margin 0.4rem
|
||||
|
||||
.pro-avatars
|
||||
@ -25,6 +25,15 @@
|
||||
|
||||
.user
|
||||
display flex
|
||||
position relative
|
||||
|
||||
.user-list-name
|
||||
text-align center
|
||||
text-align center
|
||||
|
||||
.user-pro-icon
|
||||
display inline-flex
|
||||
position absolute
|
||||
bottom -2px
|
||||
right -2px
|
||||
font-size 1.1rem
|
||||
filter drop-shadow(0 0 3px hsla(link-color-h, link-color-s, link-color-l, 0.5))
|
Loading…
Reference in New Issue
Block a user