fullItemContainer div -> article to make it compatible with browser's reader view

This commit is contained in:
Felipe Bueno 2024-03-26 14:10:18 -03:00
parent dcc81c8b03
commit 170bf7464b
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ function TopLevelItem ({ item, noReply, ...props }) {
belowTitle={item.forwards && item.forwards.length > 0 && <FwdUsers forwards={item.forwards} />}
{...props}
>
<div className={styles.fullItemContainer} ref={textRef}>
<article className={styles.fullItemContainer} ref={textRef}>
{item.text && <ItemText item={item} />}
{item.url && <ItemEmbed item={item} />}
{item.poll && <Poll item={item} />}
@ -157,7 +157,7 @@ function TopLevelItem ({ item, noReply, ...props }) {
{numWithUnits(item.bounty, { abbreviate: false, format: true })} bounty
</div>)}
</div>}
</div>
</article>
{!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} />