Few changes to chat

Added moderator icon

changed styling for a name change message

Now usernames collapse as long as the user is the same

Imported two weights of Poppins and the OpenSans variable instead of def
400

This is some progress on #1859 and #1625
This commit is contained in:
t1enne
2022-07-02 09:08:36 +02:00
parent a2953f0758
commit 26f9a41508
7 changed files with 79 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ import { DeleteOutlined, EllipsisOutlined, StopOutlined } from '@ant-design/icon
import s from './ChatUserMessage.module.scss';
import { formatTimestamp } from './messageFmt';
import { ChatMessage } from '../../../interfaces/chat-message.model';
import { ModIcon } from '../../ui';
interface Props {
message: ChatMessage;
@@ -46,7 +47,8 @@ export default function ChatUserMessage({
>
{!sameUserAsLast && (
<div className={s.user} style={{ color }}>
{displayName}
<ModIcon />
<span className={s.userName}>{displayName}</span>
</div>
)}
<Highlight search={highlightString}>