From 8e89dfb345854aeae2f6b695fb4b237dbc4a4b3a Mon Sep 17 00:00:00 2001 From: nekojanai Date: Thu, 31 Oct 2024 06:13:28 +0100 Subject: [PATCH] fix: username wrapping (#3975) --- .../ChatJoinMessage/ChatJoinMessage.module.scss | 17 ++++++++++++++--- .../chat/ChatJoinMessage/ChatJoinMessage.tsx | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss b/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss index 24128ecfa..6b711aad6 100644 --- a/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss +++ b/web/components/chat/ChatJoinMessage/ChatJoinMessage.module.scss @@ -1,16 +1,27 @@ .root { display: inline-flex; padding: 10px 0; - color: var(--theme-color-components-chat-text); - font-weight: 400; - font-size: var(--chat-message-text-size); + .moderatorBadge, .user { margin-right: 5px; + word-break: break-all; + } + + .joinMessage { + font-weight: 400; + color: var(--theme-color-components-chat-text); + font-size: var(--chat-message-text-size); } } .icon { padding: 0 var(--chat-notification-icon-padding) 0 16px; } + +@media screen and (max-width: 350px) { + .icon { + padding-left: 0; + } + } diff --git a/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx b/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx index a018ece68..302f1333d 100644 --- a/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx +++ b/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx @@ -35,8 +35,8 @@ export const ChatJoinMessage: FC = ({ )} + joined the chat. - joined the chat. ); };