chore: add image size

This commit is contained in:
hdsuperman
2022-12-22 22:05:21 +08:00
parent b374bc7ddd
commit f4fbc7adbd
11 changed files with 61 additions and 18 deletions
+7 -5
View File
@@ -91,8 +91,9 @@ const Message: FC<IProps> = ({
onContextMenu={readOnly ? undefined : handleContextMenuEvent}
data-msg-mid={mid}
ref={inviewRef}
className={`message ${readOnly ? "readonly" : ""} ${pinInfo ? "pinned" : ""} ${contextMenuVisible ? "contextVisible" : ""
} `}
className={`message ${readOnly ? "readonly" : ""} ${pinInfo ? "pinned" : ""} ${
contextMenuVisible ? "contextVisible" : ""
} `}
>
<Tippy
key={_key}
@@ -104,7 +105,7 @@ const Message: FC<IProps> = ({
content={<Profile uid={fromUid || 0} type="card" cid={context == "user" ? 0 : contextId} />}
>
<div className="avatar" data-uid={fromUid} ref={avatarRef}>
<Avatar src={currUser?.avatar} name={currUser?.name} />
<Avatar width={40} height={40} src={currUser?.avatar} name={currUser?.name} />
</div>
</Tippy>
<ContextMenu
@@ -117,8 +118,9 @@ const Message: FC<IProps> = ({
>
<div
className="details"
data-pin-tip={`pinned by ${pinInfo?.created_by ? usersData[pinInfo.created_by]?.name : ""
}`}
data-pin-tip={`pinned by ${
pinInfo?.created_by ? usersData[pinInfo.created_by]?.name : ""
}`}
>
<div className="up">
<span className="name">{currUser?.name || "Deleted User"}</span>