diff --git a/packages/react-chat/src/components/Channels/Channel.tsx b/packages/react-chat/src/components/Channels/Channel.tsx
index d80d366..b5867e4 100644
--- a/packages/react-chat/src/components/Channels/Channel.tsx
+++ b/packages/react-chat/src/components/Channels/Channel.tsx
@@ -103,6 +103,9 @@ export const ChannelInfo = styled.div`
const ChannelTextInfo = styled.div`
display: flex;
flex-direction: column;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
`;
export const ChannelLogo = styled.div`
diff --git a/packages/react-chat/src/components/Channels/EmptyChannel.tsx b/packages/react-chat/src/components/Channels/EmptyChannel.tsx
index 66a8187..54d791c 100644
--- a/packages/react-chat/src/components/Channels/EmptyChannel.tsx
+++ b/packages/react-chat/src/components/Channels/EmptyChannel.tsx
@@ -36,11 +36,11 @@ export function EmptyChannel({ channel }: EmptyChannelProps) {
{channel.name.slice(0, 10)}.
) : channel.type === "group" ? (
-
+
You created a group with{" "}
{groupName.slice(groupName.length - 1)} and{" "}
{groupName.at(-1)}
-
+
) : (
Welcome to the beginning of the #{channel.name}
@@ -93,3 +93,7 @@ const EmptyText = styled.p`
${textMediumStyles}
`;
+
+const EmptyTextGroup = styled(EmptyText)`
+ word-break: break-all;
+`;
diff --git a/packages/react-chat/src/components/Chat.tsx b/packages/react-chat/src/components/Chat.tsx
index 408ad16..dea84ff 100644
--- a/packages/react-chat/src/components/Chat.tsx
+++ b/packages/react-chat/src/components/Chat.tsx
@@ -55,7 +55,9 @@ export function Chat() {
{communityData ? (
) : (
-
+
+
+
)}
>
) : (
-
+
+
+
)}
@@ -184,6 +186,7 @@ export function ChatBody({
}
const ChatBodyWrapper = styled.div`
+ width: 61%;
display: flex;
flex-direction: column;
flex: 1;
@@ -198,15 +201,21 @@ const ChatBodyWrapper = styled.div`
const ChannelWrapper = styled.div`
display: flex;
align-items: center;
+ max-width: 85%;
&.narrow {
width: calc(100% - 46px);
}
`;
+const SkeletonWrapper = styled.div`
+ padding: 8px;
+`;
+
const ChatTopbar = styled.div`
display: flex;
justify-content: space-between;
+ align-items: center;
padding: 5px 8px;
background: ${({ theme }) => theme.bodyBackgroundColor};
position: relative;
diff --git a/packages/react-chat/src/components/Skeleton/CommunitySkeleton.tsx b/packages/react-chat/src/components/Skeleton/CommunitySkeleton.tsx
index 3b322ae..f48c669 100644
--- a/packages/react-chat/src/components/Skeleton/CommunitySkeleton.tsx
+++ b/packages/react-chat/src/components/Skeleton/CommunitySkeleton.tsx
@@ -26,5 +26,4 @@ const LogoSkeleton = styled(Skeleton)`
const Loading = styled.div`
display: flex;
padding: 0 0 0 10px;
- margin: 0 0 16px;
`;