diff options
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r-- | vnext/src/components/Message.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 53c2a033..5667047c 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -12,7 +12,7 @@ export default function Message(props) { const msg = props.data; const visitor = props.visitor; return ( - <article itemProp="blogPost" itemScope="" itemType="http://schema.org/BlogPosting" itemRef="org"> + <div className="msg-cont" itemProp="blogPost" itemScope="" itemType="http://schema.org/BlogPosting" itemRef="org"> <header className="h"> <span itemProp="author" itemScope="" itemType="http://schema.org/Person"> <a href={`/${msg.user.uname}/`} itemProp="url" rel="author"><span itemProp="name">{msg.user.uname}</span></a> @@ -30,7 +30,9 @@ export default function Message(props) { <Tags data={msg.tags || []} /> </div> </header> - <p itemProp="description" dangerouslySetInnerHTML={{ __html: format(msg.body, msg.mid, (msg.tags || []).indexOf('code') >= 0) }}></p> + <div className="msg-txt"> + <p itemProp="description" dangerouslySetInnerHTML={{ __html: format(msg.body, msg.mid, (msg.tags || []).indexOf('code') >= 0) }}></p> + </div> {msg.photo && <p className="ir"><a href={`//i.juick.com/p/${msg.mid}.${msg.attach}`} data-fname={`${msg.mid}.${msg.attach}`}> <img itemProp="image" src={`//i.juick.com/p/${msg.mid}.${msg.attach}`} alt="" /></a> @@ -87,7 +89,8 @@ export default function Message(props) { <a href="#" className="a-privacy">Открыть доступ</a> )} </nav> - </article> + {props.children} + </div> ); } @@ -103,7 +106,8 @@ Message.propTypes = { user: UserType, timestamp: PropTypes.string.isRequired, body: PropTypes.string - }) + }), + children: PropTypes.node }; Tags.propTypes = { |