fullItemContainer div -> article to make it compatible with browser's reader view
This commit is contained in:
parent
dcc81c8b03
commit
170bf7464b
@ -140,7 +140,7 @@ function TopLevelItem ({ item, noReply, ...props }) {
|
|||||||
belowTitle={item.forwards && item.forwards.length > 0 && <FwdUsers forwards={item.forwards} />}
|
belowTitle={item.forwards && item.forwards.length > 0 && <FwdUsers forwards={item.forwards} />}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<div className={styles.fullItemContainer} ref={textRef}>
|
<article className={styles.fullItemContainer} ref={textRef}>
|
||||||
{item.text && <ItemText item={item} />}
|
{item.text && <ItemText item={item} />}
|
||||||
{item.url && <ItemEmbed item={item} />}
|
{item.url && <ItemEmbed item={item} />}
|
||||||
{item.poll && <Poll item={item} />}
|
{item.poll && <Poll item={item} />}
|
||||||
@ -157,7 +157,7 @@ function TopLevelItem ({ item, noReply, ...props }) {
|
|||||||
{numWithUnits(item.bounty, { abbreviate: false, format: true })} bounty
|
{numWithUnits(item.bounty, { abbreviate: false, format: true })} bounty
|
||||||
</div>)}
|
</div>)}
|
||||||
</div>}
|
</div>}
|
||||||
</div>
|
</article>
|
||||||
{!noReply &&
|
{!noReply &&
|
||||||
<>
|
<>
|
||||||
<Reply item={item} replyOpen placeholder={item.ncomments > 3 ? 'fractions of a penny for your thoughts?' : 'early comments get more zaps'} onCancelQuote={cancelQuote} onQuoteReply={quoteReply} quote={quote} />
|
<Reply item={item} replyOpen placeholder={item.ncomments > 3 ? 'fractions of a penny for your thoughts?' : 'early comments get more zaps'} onCancelQuote={cancelQuote} onQuoteReply={quoteReply} quote={quote} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user