0

fix(chat): tweak layouts of chat user badges. Closes #3009

This commit is contained in:
Gabe Kangas 2023-05-31 14:49:42 -07:00
parent 59ee7fd199
commit 924223328c
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
5 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,14 @@
.root {
display: inline-flex;
padding: 10px 0px;
color: var(--theme-color-components-chat-text);
font-weight: 400;
font-size: var(--chat-message-text-size);
.moderatorBadge,
.user {
margin-right: 5px;
}
}
.icon {

View File

@ -31,11 +31,11 @@ export const ChatJoinMessage: FC<ChatJoinMessageProps> = ({
</span>
<span className={styles.user}>{displayName}</span>
{isAuthorModerator && (
<span>
<span className={styles.moderatorBadge}>
<ModerationBadge userColor={userColor} />
</span>
)}
</span>{' '}
</span>
joined the chat.
</div>
);

View File

@ -10,6 +10,5 @@
justify-content: center;
align-items: center;
overflow: hidden;
margin-left: 5px;
font-size: 0.75rem;
}

View File

@ -19,6 +19,10 @@ $p-v-size: 2px;
font-weight: 600;
}
.userBadges {
margin-left: 3px;
}
.message {
overflow: hidden;
overflow-wrap: anywhere;

View File

@ -101,7 +101,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
<UserTooltip user={user}>
<div className={styles.user} style={{ color }}>
<span className={styles.userName}>{displayName}</span>
{badgeNodes}
<span className={styles.userBadges}>{badgeNodes}</span>
</div>
</UserTooltip>
)}