forked from abner/for-legacy-web
fix: bug where channel icon scales with channel name (#661)
Co-authored-by: Paul Makles <paulmakles@gmail.com>feat/capacitor
parent
2e9c013ed8
commit
fc0c7611d4
|
|
@ -15,11 +15,13 @@ import { stopPropagation } from "../../../lib/stopPropagation";
|
||||||
|
|
||||||
import { useIntermediate } from "../../../context/intermediate/Intermediate";
|
import { useIntermediate } from "../../../context/intermediate/Intermediate";
|
||||||
|
|
||||||
|
import { Children } from "../../../types/Preact";
|
||||||
import ChannelIcon from "../../common/ChannelIcon";
|
import ChannelIcon from "../../common/ChannelIcon";
|
||||||
import Tooltip from "../../common/Tooltip";
|
import Tooltip from "../../common/Tooltip";
|
||||||
import UserIcon from "../../common/user/UserIcon";
|
import UserIcon from "../../common/user/UserIcon";
|
||||||
import { Username } from "../../common/user/UserShort";
|
import { Username } from "../../common/user/UserShort";
|
||||||
import UserStatus from "../../common/user/UserStatus";
|
import UserStatus from "../../common/user/UserStatus";
|
||||||
|
import IconButton from "../../ui/IconButton";
|
||||||
|
|
||||||
type CommonProps = Omit<
|
type CommonProps = Omit<
|
||||||
JSX.HTMLAttributes<HTMLDivElement>,
|
JSX.HTMLAttributes<HTMLDivElement>,
|
||||||
|
|
@ -164,11 +166,9 @@ export const ChannelButton = observer((props: ChannelProps) => {
|
||||||
channel: channel._id,
|
channel: channel._id,
|
||||||
unread: !!alert,
|
unread: !!alert,
|
||||||
})}>
|
})}>
|
||||||
<ChannelIcon
|
<div className={styles.avatar}>
|
||||||
className={styles.avatar}
|
<ChannelIcon target={channel} size={compact ? 24 : 32} />
|
||||||
target={channel}
|
</div>
|
||||||
size={compact ? 24 : 32}
|
|
||||||
/>
|
|
||||||
<div className={styles.name}>
|
<div className={styles.name}>
|
||||||
<div>{channel.name}</div>
|
<div>{channel.name}</div>
|
||||||
{channel.channel_type === "Group" && (
|
{channel.channel_type === "Group" && (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue