From fc0c7611d433354a5aae82ceb72bb1ca7fe4a4f1 Mon Sep 17 00:00:00 2001 From: Leda <38331868+LedaThemis@users.noreply.github.com> Date: Tue, 14 Jun 2022 14:23:58 +0000 Subject: [PATCH] fix: bug where channel icon scales with channel name (#661) Co-authored-by: Paul Makles --- src/components/navigation/items/ButtonItem.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/navigation/items/ButtonItem.tsx b/src/components/navigation/items/ButtonItem.tsx index 29877a91..98583a78 100644 --- a/src/components/navigation/items/ButtonItem.tsx +++ b/src/components/navigation/items/ButtonItem.tsx @@ -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, @@ -164,11 +166,9 @@ export const ChannelButton = observer((props: ChannelProps) => { channel: channel._id, unread: !!alert, })}> - +
+ +
{channel.name}
{channel.channel_type === "Group" && (