chore: add image size

This commit is contained in:
hdsuperman
2022-12-22 21:47:11 +08:00
parent 8a9b699d9e
commit b374bc7ddd
2 changed files with 16 additions and 7 deletions
+8 -1
View File
@@ -69,7 +69,14 @@ const Channel: FC<Props> = ({ interactive = true, id, compact = false, avatarSiz
className={`${interactive ? "interactive" : ""} ${compact ? "compact" : ""}`}
>
<div className="avatar">
<Avatar type="channel" src={icon} name={"#"} alt="avatar" />
<Avatar
width={avatarSize}
height={avatarSize}
type="channel"
src={icon}
name={"#"}
alt="avatar"
/>
</div>
{!compact && (
<div className="name">