chore: add image size

This commit is contained in:
hdsuperman
2022-12-22 23:41:13 +08:00
parent 44e9cc9cd0
commit c21e22e370
2 changed files with 8 additions and 2 deletions
@@ -63,7 +63,7 @@ const ForwardedMessage: FC<Props> = ({ context, to, from_uid, id }) => {
<StyledMsg className="archive" key={idx}> <StyledMsg className="archive" key={idx}>
{user && ( {user && (
<div className="avatar"> <div className="avatar">
<Avatar width={40} height={40} src={user.avatar} name={user.name} /> <Avatar width={24} height={24} src={user.avatar} name={user.name} />
</div> </div>
)} )}
<div className="details"> <div className="details">
+7 -1
View File
@@ -59,7 +59,13 @@ const User: FC<Props> = ({
onContextMenu={enableContextMenu ? handleContextMenuEvent : undefined} onContextMenu={enableContextMenu ? handleContextMenuEvent : undefined}
> >
<div className="avatar"> <div className="avatar">
<Avatar src={curr.avatar} name={curr.name} alt="avatar" /> <Avatar
width={avatarSize}
height={avatarSize}
src={curr.avatar}
name={curr.name}
alt="avatar"
/>
<div className={`status ${online ? "online" : "offline"}`}></div> <div className={`status ${online ? "online" : "offline"}`}></div>
</div> </div>
{!compact && ( {!compact && (