diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx index 37b02dc45..4c10a5754 100644 --- a/web/components/chat/ChatContainer/ChatContainer.tsx +++ b/web/components/chat/ChatContainer/ChatContainer.tsx @@ -5,8 +5,8 @@ import { LoadingOutlined } from '@ant-design/icons'; import { ChatMessage } from '../../../interfaces/chat-message.model'; import { ChatState } from '../../../interfaces/application-state'; import { MessageType } from '../../../interfaces/socket-events'; -import ChatUserMessage from '../ChatUserMessage'; import s from './ChatContainer.module.scss'; +import { ChatUserMessage } from '..'; interface Props { messages: ChatMessage[]; diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss new file mode 100644 index 000000000..90558f747 --- /dev/null +++ b/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss @@ -0,0 +1,15 @@ + +.root { + font-size: 0.9rem; + padding: 5px; + padding-left: 1rem; + margin: 8px 5px; + border-left: 2px solid; + .user { + font-weight: bold; + color: var(--color-owncast-grey-100); + } + .message { + color: var(--color-owncast-grey-100); + } +} diff --git a/web/components/chat/ChatUserMessage.tsx b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx similarity index 57% rename from web/components/chat/ChatUserMessage.tsx rename to web/components/chat/ChatUserMessage/ChatUserMessage.tsx index 9a1df22af..30498c78f 100644 --- a/web/components/chat/ChatUserMessage.tsx +++ b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx @@ -1,4 +1,5 @@ -import { ChatMessage } from '../../interfaces/chat-message.model'; +import { ChatMessage } from '../../../interfaces/chat-message.model'; +import s from './ChatUserMessage.module.scss'; interface Props { message: ChatMessage; @@ -12,12 +13,14 @@ export default function ChatUserMessage(props: Props) { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { displayName, displayColor } = user; - // TODO: Convert displayColor (a hue) to a usable color. + const color = `hsl(${displayColor}, 100%, 70%)`; return ( -