Merge pull request #974 from felipebueno/reader_view_compatibility

Enable readerView compatibility (issue #884)
This commit is contained in:
Keyan 2024-03-26 14:00:50 -05:00 committed by GitHub
commit b18b5d1638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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} />