Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Tighten up collapsed message spacing
Gabe Kangasd8bb0322e122
diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scssindex 65a95cec3f..f561275bc2 100644--- a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss+++ b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss@@ -4,7 +4,7 @@}position: relative;font-size: 0.9rem;- padding: 5px 15px 5px 5px;+ padding: 0px 15px 5px 5px;padding-left: 1rem;.user {display: flex;@@ -80,3 +80,13 @@display: block;}}++.messagePadding {+ padding: 3.5px;+ padding-bottom: 0px;+ padding-top: 7px;+}++.messagePaddingCollapsed {+ padding-top: 2px;+}diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx b/web/components/chat/ChatUserMessage/ChatUserMessage.tsxindex a1438f0784..affd16c38d 100644--- a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx+++ b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx@@ -3,6 +3,7 @@ import { useEffect, useState } from 'react';import { Highlight } from 'react-highlighter-ts';import he from 'he';import cn from 'classnames';+import { Tooltip } from 'antd';import s from './ChatUserMessage.module.scss';import { formatTimestamp } from './messageFmt';import { ChatMessage } from '../../../interfaces/chat-message.model';@@ -32,7 +33,7 @@ export default function ChatUserMessage({const { id: userId, displayName, displayColor } = user;const color = `var(--theme-user-colors-${displayColor})`;- const formattedTimestamp = `Sent at ${formatTimestamp(timestamp)}`;+ const formattedTimestamp = `Sent ${formatTimestamp(timestamp)}`;const [formattedMessage, setFormattedMessage] = useState<string>(body);const badgeStrings = [isAuthorModerator && 'mod', isAuthorAuthenticated && 'auth'];@@ -45,23 +46,27 @@ export default function ChatUserMessage({}, [message]);return (- <div style={{ padding: 3.5 }}>+ <div className={cn(s.messagePadding, sameUserAsLast && s.messagePaddingCollapsed)}><divclassName={cn(s.root, {[s.ownMessage]: sentBySelf,})}style={{ borderColor: color }}- title={formattedTimestamp}>{!sameUserAsLast && (- <div className={s.user} style={{ color }}>- <span className={s.userName}>{displayName}</span>- <span>{badges}</span>- </div>+ <Tooltip title="user info goes here" placement="topLeft" mouseEnterDelay={1}>+ <div className={s.user} style={{ color }}>+ <span className={s.userName}>{displayName}</span>+ <span>{badges}</span>+ </div>+ </Tooltip>)}- <Highlight search={highlightString}>- <div className={s.message}>{formattedMessage}</div>- </Highlight>+ <Tooltip title={formattedTimestamp} mouseEnterDelay={1}>+ <Highlight search={highlightString}>+ <div className={s.message}>{formattedMessage}</div>+ </Highlight>+ </Tooltip>+{showModeratorMenu && (<div className={s.modMenuWrapper}><ChatModerationActionMenu