render message in cell

This commit is contained in:
gingervitis 2020-12-26 21:46:40 -08:00
parent f6814565de
commit 3e959fe2d4
2 changed files with 17 additions and 0 deletions

View File

@ -153,6 +153,13 @@ export default function Chat() {
key: 'body', key: 'body',
className: 'message-col', className: 'message-col',
width: 320, width: 320,
render: body => (
<div
className="message-contents"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: body }}
/>
)
}, },
{ {
title: '', title: '',

View File

@ -24,6 +24,16 @@
font-size: 11px; font-size: 11px;
} }
} }
.message-contents {
overflow: hidden;
img {
position: relative;
margin-top: -5px;
width: 3rem;
padding: 0.25rem;
}
}
} }
.bulk-editor { .bulk-editor {