mirror of
https://github.com/usememos/memos.git
synced 2025-10-08 05:18:28 +08:00
parent
3c2578f666
commit
8eed9c267c
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ interface Props {
|
||||||
const UserAvatar = (props: Props) => {
|
const UserAvatar = (props: Props) => {
|
||||||
const { avatarUrl, className } = props;
|
const { avatarUrl, className } = props;
|
||||||
return (
|
return (
|
||||||
<div className={`${className ?? ""} w-8 h-8 rounded-full overflow-clip bg-gray-100 dark:bg-zinc-800`}>
|
<div className={`${className ?? ""} w-8 h-8 overflow-clip bg-gray-100 dark:bg-zinc-800`}>
|
||||||
<img className="w-full h-auto min-w-full min-h-full object-cover" src={avatarUrl || "/logo.png"} alt="" />
|
<img className="w-full h-auto rounded-full min-w-full min-h-full object-cover" src={avatarUrl || "/logo.png"} alt="" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue