Skip to content

Commit

Permalink
fix: logo img rounded (#1427)
Browse files Browse the repository at this point in the history
rounded-full move to img tag
  • Loading branch information
fifsky authored Mar 30, 2023
1 parent 3c2578f commit 8eed9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interface Props {
const UserAvatar = (props: Props) => {
const { avatarUrl, className } = props;
return (
<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 className={`${className ?? ""} w-8 h-8 overflow-clip bg-gray-100 dark:bg-zinc-800`}>
<img className="w-full h-auto rounded-full min-w-full min-h-full object-cover" src={avatarUrl || "/logo.png"} alt="" />
</div>
);
};
Expand Down

0 comments on commit 8eed9c2

Please sign in to comment.