We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e01ea commit b293551Copy full SHA for b293551
1 file changed
client/src/components/avatar.tsx
@@ -4,9 +4,9 @@ export default function Avatar({ username }) {
4
const [loaded, setLoaded] = useState(false);
5
6
return (
7
- <>
+ <div style={{ width: 50, height: 50 }}>
8
{!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
- </>
+ <img src={`https://avatar.iran.liara.run/public?username=${username}`} onLoad={() => setLoaded(true)} width={50} />
+ </div>
11
);
12
}
0 commit comments