Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix Fediverse chat action overflows (#4783)

faisalmujawar148d1edb4c73ae9
diff --git a/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss b/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss
index b6807b170e..c6c7dea183 100644
--- a/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss
+++ b/web/components/chat/ChatSocialMessage/ChatSocialMessage.module.scss
@@ -1,3 +1,10 @@
+.containerColumn {
+ position: relative;
+ max-width: 100%;
+ min-width: 1px;
+ display: grid;
+}
+
.followerPadding {
padding: 0.5em;
}
@@ -39,9 +46,13 @@
}
.account {
+ text-overflow: ellipsis;
font-family: var(--theme-text-display-font-family);
font-weight: 600;
color: var(--theme-color-components-text-on-light);
+ overflow: hidden;
+ display: inline-block;
+ white-space: nowrap;
}
.icon {
diff --git a/web/components/chat/ChatSocialMessage/ChatSocialMessage.tsx b/web/components/chat/ChatSocialMessage/ChatSocialMessage.tsx
index ec37999344..0491f356e9 100644
--- a/web/components/chat/ChatSocialMessage/ChatSocialMessage.tsx
+++ b/web/components/chat/ChatSocialMessage/ChatSocialMessage.tsx
@@ -50,7 +50,7 @@ export const ChatSocialMessage: FC<ChatSocialMessageProps> = ({ message }) => {
<Icon className={styles.icon} />
</Col>
- <Col>
+ <Col className={styles.containerColumn}>
<Row className={styles.account}>{title}</Row>
<Row className={styles.body} dangerouslySetInnerHTML={{ __html: body }} />
</Col>