fix: bug where channel icon scales with channel name (#661)

Co-authored-by: Paul Makles <paulmakles@gmail.com>
pull/1049/head
Leda 2022-06-14 14:23:58 +00:00 committed by GitHub
parent d1fe273310
commit d4e92bc6c8
1 changed files with 5 additions and 5 deletions

View File

@ -15,11 +15,13 @@ import { stopPropagation } from "../../../lib/stopPropagation";
import { useIntermediate } from "../../../context/intermediate/Intermediate";
import { Children } from "../../../types/Preact";
import ChannelIcon from "../../common/ChannelIcon";
import Tooltip from "../../common/Tooltip";
import UserIcon from "../../common/user/UserIcon";
import { Username } from "../../common/user/UserShort";
import UserStatus from "../../common/user/UserStatus";
import IconButton from "../../ui/IconButton";
type CommonProps = Omit<
JSX.HTMLAttributes<HTMLDivElement>,
@ -164,11 +166,9 @@ export const ChannelButton = observer((props: ChannelProps) => {
channel: channel._id,
unread: !!alert,
})}>
<ChannelIcon
className={styles.avatar}
target={channel}
size={compact ? 24 : 32}
/>
<div className={styles.avatar}>
<ChannelIcon target={channel} size={compact ? 24 : 32} />
</div>
<div className={styles.name}>
<div>{channel.name}</div>
{channel.channel_type === "Group" && (