chore: update avatar max size (#1109)

This commit is contained in:
boojack
2023-02-18 10:48:31 +08:00
committed by GitHub
parent bcee0bbf3a
commit 37f9c7c8d6
6 changed files with 30 additions and 30 deletions

View File

@ -9,7 +9,7 @@ const UserAvatar = (props: Props) => {
const { avatarUrl, className } = props;
return (
<div className={`${className ?? ""} w-8 h-8 rounded-full bg-gray-100 dark:bg-zinc-800`}>
<img className="w-full h-full" src={avatarUrl || MEMOS_LOGO_URL} alt="" />
<img className="w-full h-auto min-w-full min-h-full object-cover" src={avatarUrl || MEMOS_LOGO_URL} alt="" />
</div>
);
};