Skip to content

Commit 6f417cc

Browse files
committed
ui: place ShowNewComments in the bottom-right corner of nested comments
1 parent 08bbba4 commit 6f417cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/comment.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ export default function Comment ({
261261
: !noReply &&
262262
<Reply depth={depth + 1} item={item} replyOpen={replyOpen} onCancelQuote={cancelQuote} onQuoteReply={quoteReply} quote={quote}>
263263
{root.bounty && !bountyPaid && <PayBounty item={item} />}
264+
<div className='ms-auto'>
265+
{item.newComments?.length > 0 && (
266+
<ShowNewComments newComments={item.newComments} itemId={item.id} />
267+
)}
268+
</div>
264269
</Reply>}
265270
{children}
266271
<div className={styles.comments}>
@@ -276,9 +281,6 @@ export default function Comment ({
276281
: null}
277282
{/* TODO: add link to more comments if they're limited */}
278283
</div>
279-
{item.newComments?.length > 0 && (
280-
<ShowNewComments newComments={item.newComments} itemId={item.id} />
281-
)}
282284
</div>
283285
)
284286
)}

0 commit comments

Comments
 (0)