Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

render message in cell

gingervitis3e959fe2d46e
diff --git a/web/pages/chat.tsx b/web/pages/chat.tsx
index 22a4080ffb..0a550d303f 100644
--- a/web/pages/chat.tsx
+++ b/web/pages/chat.tsx
@@ -153,6 +153,13 @@ export default function Chat() {
key: 'body',
className: 'message-col',
width: 320,
+ render: body => (
+ <div
+ className="message-contents"
+ // eslint-disable-next-line react/no-danger
+ dangerouslySetInnerHTML={{ __html: body }}
+ />
+ )
},
{
title: '',
diff --git a/web/styles/chat.scss b/web/styles/chat.scss
index e2c28d76c8..4f7d04f980 100644
--- a/web/styles/chat.scss
+++ b/web/styles/chat.scss
@@ -24,6 +24,16 @@
font-size: 11px;
}
}
+
+ .message-contents {
+ overflow: hidden;
+ img {
+ position: relative;
+ margin-top: -5px;
+ width: 3rem;
+ padding: 0.25rem;
+ }
+ }
}
.bulk-editor {