Skip to content

Commit b293551

Browse files
committed
fix(client): adjust avatar placeholder overflow
1 parent 52e01ea commit b293551

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/avatar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export default function Avatar({ username }) {
44
const [loaded, setLoaded] = useState(false);
55

66
return (
7-
<>
7+
<div style={{ width: 50, height: 50 }}>
88
{!loaded && ( <img src={placeholder} alt="placeholder" /> )}
9-
<img src={`https://avatar.iran.liara.run/public?username=${username}`} alt="pfp" onLoad={() => setLoaded(true)} width={50} />
10-
</>
9+
<img src={`https://avatar.iran.liara.run/public?username=${username}`} onLoad={() => setLoaded(true)} width={50} />
10+
</div>
1111
);
1212
}

0 commit comments

Comments
 (0)