diff --git a/packages/react-chat/src/components/Channels/Channel.tsx b/packages/react-chat/src/components/Channels/Channel.tsx
index 8b849bc1..09b6ae53 100644
--- a/packages/react-chat/src/components/Channels/Channel.tsx
+++ b/packages/react-chat/src/components/Channels/Channel.tsx
@@ -1,6 +1,7 @@
import React from "react";
import styled from "styled-components";
+import { useMessengerContext } from "../../contexts/messengerProvider";
import { useNarrow } from "../../contexts/narrowProvider";
import { ChannelData } from "../../models/ChannelData";
import { GroupIcon } from "../Icons/GroupIcon";
@@ -14,12 +15,13 @@ function RenderChannelName({
channel: ChannelData;
className?: string;
}) {
+ const { activeChannel } = useMessengerContext();
switch (channel.type) {
case "group":
return (
-
- {channel.name}
+
+ {` ${channel.name}`}
);
case "channel":
@@ -77,7 +79,7 @@ export function Channel({
@@ -89,7 +91,7 @@ export function Channel({
{!activeView && !!mention && mention > 0 && !channel?.isMuted && (
{mention}
)}
- {channel?.isMuted && }
+ {channel?.isMuted && !activeView && }
);
}
@@ -101,6 +103,7 @@ const ChannelWrapper = styled.div<{ isNarrow?: boolean }>`
padding: 8px;
cursor: pointer;
width: ${({ isNarrow }) => (isNarrow ? "calc(100% - 162px)" : "100%")};
+
&.active {
background-color: ${({ theme }) => theme.activeChannelBackground};
border-radius: 8px;
@@ -136,7 +139,7 @@ export const ChannelLogo = styled.div<{ icon?: string }>`
background-color: ${({ theme }) => theme.iconColor};
background-size: cover;
background-repeat: no-repeat;
- backgroundimage: ${({ icon }) => icon && `url(${icon}`};
+ background-image: ${({ icon }) => icon && `url(${icon}`};
color: ${({ theme }) => theme.iconTextColor};
&.active {
diff --git a/packages/react-chat/src/components/Channels/EmptyChannel.tsx b/packages/react-chat/src/components/Channels/EmptyChannel.tsx
index 873a984c..9c966b53 100644
--- a/packages/react-chat/src/components/Channels/EmptyChannel.tsx
+++ b/packages/react-chat/src/components/Channels/EmptyChannel.tsx
@@ -1,6 +1,8 @@
import React from "react";
+import { utils } from "status-communities/dist/cjs";
import styled from "styled-components";
+import { useIdentity } from "../../contexts/identityProvider";
import { ChannelData } from "../../models/ChannelData";
import { textMediumStyles } from "../Text";
@@ -12,6 +14,7 @@ type EmptyChannelProps = {
export function EmptyChannel({ channel }: EmptyChannelProps) {
const groupName = channel.name.split(", ");
+ const identity = useIdentity();
return (
@@ -31,7 +34,7 @@ export function EmptyChannel({ channel }: EmptyChannelProps) {
) : channel.type === "group" ? (
- You created a group with{" "}
+ {utils.bufToHex(identity.publicKey)} created a group with{" "}
{groupName.slice(groupName.length - 1)} and{" "}
{groupName.at(-1)}
@@ -88,5 +91,7 @@ const EmptyText = styled.p`
`;
const EmptyTextGroup = styled(EmptyText)`
- word-break: break-all;
+ & > span {
+ word-break: break-all;
+ }
`;
diff --git a/packages/react-chat/src/components/Chat/ChatCreation.tsx b/packages/react-chat/src/components/Chat/ChatCreation.tsx
index ccb9e9cc..4a1e3160 100644
--- a/packages/react-chat/src/components/Chat/ChatCreation.tsx
+++ b/packages/react-chat/src/components/Chat/ChatCreation.tsx
@@ -45,6 +45,7 @@ export function ChatCreation({ editGroup }: ChatCreationProps) {
id: group.join(""),
name: group.join(", "),
type: "group",
+ description: `${group.length + 1} members`,
})
: setChannel({
id: group[0],
diff --git a/packages/react-chat/src/components/Chat/ChatMessageContent.tsx b/packages/react-chat/src/components/Chat/ChatMessageContent.tsx
index d5b2258e..7f062065 100644
--- a/packages/react-chat/src/components/Chat/ChatMessageContent.tsx
+++ b/packages/react-chat/src/components/Chat/ChatMessageContent.tsx
@@ -124,11 +124,11 @@ const MessageImage = styled.img`
height: 100%;
object-fit: cover;
border-radius: 16px;
- cursor; pointer;
+ cursor: pointer;
`;
const PreviewSiteNameWrapper = styled.div`
- font-family: Inter;
+ font-family: "Inter";
font-style: normal;
font-weight: normal;
font-size: 12px;
diff --git a/packages/react-chat/src/components/CommunityIdentity.tsx b/packages/react-chat/src/components/CommunityIdentity.tsx
index 30aa2dca..445eeb84 100644
--- a/packages/react-chat/src/components/CommunityIdentity.tsx
+++ b/packages/react-chat/src/components/CommunityIdentity.tsx
@@ -70,6 +70,7 @@ const Name = styled.p`
font-weight: 500;
text-align: left;
color: ${({ theme }) => theme.primary};
+ white-space: nowrap;
${textMediumStyles}
`;
diff --git a/packages/react-chat/src/components/Form/ChannelMenu.tsx b/packages/react-chat/src/components/Form/ChannelMenu.tsx
index e6c2cad5..2593d4bb 100644
--- a/packages/react-chat/src/components/Form/ChannelMenu.tsx
+++ b/packages/react-chat/src/components/Form/ChannelMenu.tsx
@@ -31,8 +31,9 @@ export const ChannelMenu = ({
const narrow = useNarrow();
const { clearNotifications, removeChannel } = useMessengerContext();
const { setModal } = useModal(EditModalName);
+
return (
-
+
{narrow && (