mirror of
https://github.com/usememos/memos.git
synced 2025-01-04 11:33:06 +08:00
fix: avatar is not rounded (#1415)
This commit is contained in:
parent
7d89fcc892
commit
17ca97ebd1
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ interface Props {
|
|||
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`}>
|
||||
<div className={`${className ?? ""} w-8 h-8 rounded-full 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="" />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue