Skip to content

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

feat(chat): decrease msg collapse timeout + add spacing. Closes #3062

Gabe Kangas96331566bb67
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx
index 40a8df8a37..ea6460b3f2 100644
--- a/web/components/chat/ChatContainer/ChatContainer.tsx
+++ b/web/components/chat/ChatContainer/ChatContainer.tsx
@@ -58,7 +58,7 @@ function shouldCollapseMessages(
return false;
}
- const maxTimestampDelta = 1000 * 60; // 1 minute
+ const maxTimestampDelta = 1000 * 40; // 40 seconds
const lastTimestamp = new Date(lastMessage?.timestamp).getTime();
const thisTimestamp = new Date(message.timestamp).getTime();
if (thisTimestamp - lastTimestamp > maxTimestampDelta) {
diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss
index e5bab85784..64b823e513 100644
--- a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss
+++ b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss
@@ -91,5 +91,5 @@ $p-v-size: 2px;
}
.messagePaddingCollapsed {
- padding: 0px 5px 0px 5px;
+ padding: 2px 5px 0px 5px;
}