fix: chat style fixes
This commit is contained in:
parent
f2c2e3a39b
commit
3df69c1e39
@ -8,7 +8,7 @@ export type EmojiProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function Emoji({ name, url }: 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[] }) {
|
export function Emojify({ content, emoji }: { content: string; emoji: EmojiTag[] }) {
|
||||||
|
@ -67,17 +67,17 @@
|
|||||||
.live-chat .message {
|
.live-chat .message {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.live-chat .message .profile {
|
.live-chat .message .profile {
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 15px;
|
|
||||||
float: left;
|
float: left;
|
||||||
}
|
|
||||||
|
|
||||||
.live-chat .message .profile {
|
|
||||||
color: #34d2fe;
|
color: #34d2fe;
|
||||||
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.live-chat .message.streamer .profile {
|
.live-chat .message.streamer .profile {
|
||||||
@ -86,6 +86,7 @@
|
|||||||
|
|
||||||
.live-chat .message a {
|
.live-chat .message a {
|
||||||
color: #f838d9;
|
color: #f838d9;
|
||||||
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.live-chat .profile img {
|
.live-chat .profile img {
|
||||||
@ -93,13 +94,6 @@
|
|||||||
height: 24px;
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.live-chat .message > span {
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 24px;
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.live-chat .messages {
|
.live-chat .messages {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ export function Text({ content, tags, eventComponent }: TextProps) {
|
|||||||
function renderFrag(f: ParsedFragment) {
|
function renderFrag(f: ParsedFragment) {
|
||||||
switch (f.type) {
|
switch (f.type) {
|
||||||
case "custom_emoji":
|
case "custom_emoji":
|
||||||
return <Emoji name="" url={f.content} />;
|
return <Emoji name={f.content} url={f.content} />;
|
||||||
case "media":
|
case "media":
|
||||||
case "link": {
|
case "link": {
|
||||||
if (f.content.startsWith("nostr:")) {
|
if (f.content.startsWith("nostr:")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user