aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Message.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-18 17:07:00 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commit94cb8eaecbca57b104061943ea0670fc618e4236 (patch)
treee8062294a2466e8548abf91454b495cbfe8f61a8 /vnext/src/components/Message.js
parent2e6771c6a7b01fada5bd1792b33ba97a4438c01d (diff)
Thread replies
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r--vnext/src/components/Message.js12
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 = {