Browse Source

render message in cell

pull/1886/head
gingervitis 6 years ago
parent
commit
3e959fe2d4
  1. 7
      web/pages/chat.tsx
  2. 10
      web/styles/chat.scss

7
web/pages/chat.tsx

@ -153,6 +153,13 @@ export default function Chat() { @@ -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: '',

10
web/styles/chat.scss

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

Loading…
Cancel
Save