fix: chat style fixes

This commit is contained in:
Kieran 2023-11-14 15:04:58 +00:00
parent f2c2e3a39b
commit 3df69c1e39
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 7 additions and 13 deletions

View File

@ -8,7 +8,7 @@ export type EmojiProps = {
};
export function Emoji({ name, url }: EmojiProps) {
return <img alt={name} src={url} className="custom-emoji" />;
return <img alt={name} title={name} src={url} className="custom-emoji" />;
}
export function Emojify({ content, emoji }: { content: string; emoji: EmojiTag[] }) {

View File

@ -67,17 +67,17 @@
.live-chat .message {
word-wrap: break-word;
position: relative;
font-weight: 400;
font-size: 15px;
line-height: 24px;
}
.live-chat .message .profile {
gap: 8px;
font-weight: 600;
font-size: 15px;
float: left;
}
.live-chat .message .profile {
color: #34d2fe;
margin-right: 8px;
}
.live-chat .message.streamer .profile {
@ -86,6 +86,7 @@
.live-chat .message a {
color: #f838d9;
display: inline-flex;
}
.live-chat .profile img {
@ -93,13 +94,6 @@
height: 24px;
}
.live-chat .message > span {
font-weight: 400;
font-size: 15px;
line-height: 24px;
margin-left: 8px;
}
.live-chat .messages {
color: white;
}

View File

@ -24,7 +24,7 @@ export function Text({ content, tags, eventComponent }: TextProps) {
function renderFrag(f: ParsedFragment) {
switch (f.type) {
case "custom_emoji":
return <Emoji name="" url={f.content} />;
return <Emoji name={f.content} url={f.content} />;
case "media":
case "link": {
if (f.content.startsWith("nostr:")) {