Update icon-avatar.gjs (#26819)

This commit is contained in:
Carson Chang 2024-04-30 21:46:37 +08:00 committed by GitHub
parent a6624af66e
commit 5d1f38a592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@ import concatClass from "discourse/helpers/concat-class";
import icon from "discourse-common/helpers/d-icon";
import { avatarUrl, translateSize } from "discourse-common/lib/avatar-utils";
const avatarPx = translateSize("small");
const avatarPx = translateSize("medium");
const IconAvatar = <template>
<div class={{concatClass "icon-avatar" @data.classNames}}>
@ -14,7 +14,7 @@ const IconAvatar = <template>
--}}
<img
lazy="lazy"
src={{avatarUrl @data.avatarTemplate "small"}}
src={{avatarUrl @data.avatarTemplate "medium"}}
width={{avatarPx}}
height={{avatarPx}}
class="avatar"