mirror of
https://github.com/plebbit/seedit.git
synced 2026-06-12 01:56:10 -04:00
style(post page): show "there doesn't seem to be anything here" when there aren't replies
This commit is contained in:
@@ -147,4 +147,10 @@
|
||||
.repliesTitle {
|
||||
max-width: 100vw;
|
||||
}
|
||||
}
|
||||
|
||||
.noReplies {
|
||||
color: var(--red);
|
||||
font-size: 13px;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
@@ -75,6 +75,7 @@ const Post = ({ post }: { post: Comment }) => {
|
||||
</div>
|
||||
)}
|
||||
<div className={styles.replies}>
|
||||
{replies.length === 0 && <div className={styles.noReplies}>{t('nothing_found')}</div>}
|
||||
{isSingleComment ? (
|
||||
<Reply key={`singleComment-${cid}`} reply={post} depth={0} isSingleComment={true} />
|
||||
) : (
|
||||
@@ -138,7 +139,7 @@ const PostWithContext = ({ post }: { post: Comment }) => {
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.replies}>
|
||||
<Reply key={`contextComment-${topParentComment.cid}-test`} reply={topParentComment} depth={0} />
|
||||
<Reply key={`contextComment-${topParentComment.cid}`} reply={topParentComment} depth={0} />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user