fix(chat): tweak layouts of chat user badges. Closes #3009
This commit is contained in:
parent
59ee7fd199
commit
924223328c
@ -1,8 +1,14 @@
|
|||||||
.root {
|
.root {
|
||||||
|
display: inline-flex;
|
||||||
padding: 10px 0px;
|
padding: 10px 0px;
|
||||||
color: var(--theme-color-components-chat-text);
|
color: var(--theme-color-components-chat-text);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: var(--chat-message-text-size);
|
font-size: var(--chat-message-text-size);
|
||||||
|
|
||||||
|
.moderatorBadge,
|
||||||
|
.user {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
@ -31,11 +31,11 @@ export const ChatJoinMessage: FC<ChatJoinMessageProps> = ({
|
|||||||
</span>
|
</span>
|
||||||
<span className={styles.user}>{displayName}</span>
|
<span className={styles.user}>{displayName}</span>
|
||||||
{isAuthorModerator && (
|
{isAuthorModerator && (
|
||||||
<span>
|
<span className={styles.moderatorBadge}>
|
||||||
<ModerationBadge userColor={userColor} />
|
<ModerationBadge userColor={userColor} />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</span>{' '}
|
</span>
|
||||||
joined the chat.
|
joined the chat.
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -10,6 +10,5 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-left: 5px;
|
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,10 @@ $p-v-size: 2px;
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.userBadges {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
|
@ -101,7 +101,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
|
|||||||
<UserTooltip user={user}>
|
<UserTooltip user={user}>
|
||||||
<div className={styles.user} style={{ color }}>
|
<div className={styles.user} style={{ color }}>
|
||||||
<span className={styles.userName}>{displayName}</span>
|
<span className={styles.userName}>{displayName}</span>
|
||||||
{badgeNodes}
|
<span className={styles.userBadges}>{badgeNodes}</span>
|
||||||
</div>
|
</div>
|
||||||
</UserTooltip>
|
</UserTooltip>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user