Update post-desktop.tsx

This commit is contained in:
Tom (plebeius.eth)
2024-07-02 09:08:24 +02:00
parent 60d7af1744
commit 3730e4b4c1
+3 -3
View File
@@ -85,10 +85,10 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
<span className={`${styles.name} ${(isDescription || isRules || authorRole) && styles.capcodeMod}`}> <span className={`${styles.name} ${(isDescription || isRules || authorRole) && styles.capcodeMod}`}>
{displayName ? ( {displayName ? (
displayName.length <= 20 ? ( displayName.length <= 20 ? (
<span className={styles.name}>{displayName}</span> displayName
) : ( ) : (
<Tooltip <Tooltip
children={<span className={styles.name}>{displayName.slice(0, 20) + '(...)'}</span>} children={displayName.slice(0, 20) + '(...)'}
content={displayName.length < 1000 ? displayName : displayName.slice(0, 1000) + `... ${t('display_name_too_long')}`} content={displayName.length < 1000 ? displayName : displayName.slice(0, 1000) + `... ${t('display_name_too_long')}`}
/> />
) )
@@ -392,7 +392,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies, showReplies
</span> </span>
)} )}
{!isHidden && {!isHidden &&
!(pinned && !isInPostPageView) && !(pinned && !isInPostPageView && !showOmittedReplies[cid]) &&
!isInPendingPostView && !isInPendingPostView &&
!isDescription && !isDescription &&
!isRules && !isRules &&