mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
gravatar size fix
This commit is contained in:
1 parent
3401e1a422
commit
36f1cb3221
1 file changed
+3
-1
@@ -7,7 +7,7 @@ interface Props {
|
||||
}
|
||||
|
||||
function Gravatar(props: Props) {
|
||||
const gravatarUrl = `https://www.gravatar.com/avatar/${props.email_hash}?s=${props.size}`;
|
||||
const gravatarUrl = `https://www.gravatar.com/avatar/${props.email_hash}?s=${props.size}&d=https://placehold.co/60x60.png`;
|
||||
|
||||
let altText = "gravatar";
|
||||
if (props.username !== undefined) {
|
||||
@@ -19,6 +19,8 @@ function Gravatar(props: Props) {
|
||||
className="rounded-circle border border-2 h-100"
|
||||
alt={altText}
|
||||
src={gravatarUrl}
|
||||
height={props.size}
|
||||
width={props.size}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user