diff --git a/tbot/web/ui/live_chat/components/chat.scss b/tbot/web/ui/live_chat/components/chat.scss index e5c0578..a60c41f 100644 --- a/tbot/web/ui/live_chat/components/chat.scss +++ b/tbot/web/ui/live_chat/components/chat.scss @@ -18,26 +18,27 @@ .message { padding: 2px 0; - display: flex; gap: 0.5rem; - align-items: center; + vertical-align: baseline; } .username { font-weight: 700; color: #ffa600; + display: inline; } .text { color: #ffffff; word-wrap: break-word; - display: flex; - align-items: center; - gap: 0.25rem; + display: inline; + vertical-align: baseline; + margin-left: 0.25rem; } .provider { font-weight: bold; + margin-right: 0.5rem; } .twitch { @@ -50,6 +51,7 @@ .time { color: #8c8c8c; + margin-right: 0.5rem; } .notice { @@ -60,12 +62,6 @@ } .emotettv-img { - width: 2rem; - height: 2rem; -} - -.emotettv-badge { - width: 1.5rem; - height: 1.5rem; - margin-top: -0.2rem; + max-width: 2rem; + max-height: 2rem; } \ No newline at end of file diff --git a/tbot/web/ui/live_chat/components/render_message.jsx b/tbot/web/ui/live_chat/components/render_message.jsx index d52468f..f0e0536 100644 --- a/tbot/web/ui/live_chat/components/render_message.jsx +++ b/tbot/web/ui/live_chat/components/render_message.jsx @@ -6,36 +6,19 @@ import "./chat.scss"; export function RenderMessage({ msg }) { return (
-
+ {new Date(msg.created_at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: false, })} -
- + {providerShort(msg.provider)} - -
- -
- - {msg.user} - - : -
- -
+ {msg.user} + + : +
+ >
); } diff --git a/tbot/web/ui/live_chat/components/render_mod_action.jsx b/tbot/web/ui/live_chat/components/render_mod_action.jsx index 353eac6..7b6b613 100644 --- a/tbot/web/ui/live_chat/components/render_mod_action.jsx +++ b/tbot/web/ui/live_chat/components/render_mod_action.jsx @@ -3,15 +3,15 @@ import { providerShort } from "./provider_short"; export function RenderModAction({ msg }) { return (
-
+ {new Date(msg.created_at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: false, })} -
+ {providerShort(msg.provider)} -
{msg.message}
+ {msg.message}
); } diff --git a/tbot/web/ui/live_chat/components/render_notice.jsx b/tbot/web/ui/live_chat/components/render_notice.jsx index 0a0dc68..5d00858 100644 --- a/tbot/web/ui/live_chat/components/render_notice.jsx +++ b/tbot/web/ui/live_chat/components/render_notice.jsx @@ -1,7 +1,7 @@ export function RenderNotice({ msg }) { return (
-
{msg.message}
+ {msg.message}
); }