fix: shorten rendered user ID display from 12 to 8 characters

This commit is contained in:
plebeius
2026-02-10 13:23:46 +08:00
parent cdd6be915e
commit 24d329a329
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ const PostInfo = ({
onClick={() => handleUserAddressClick(userID, postCid)}
style={{ backgroundColor: userIDBackgroundColor, color: userIDTextColor }}
>
{userID}
{userID?.slice(0, 8)}
</span>
}
content={`${numberOfPostsByAuthor === 1 ? t('1_post_by_this_id') : t('x_posts_by_this_id', { number: numberOfPostsByAuthor })}`}
+1 -1
View File
@@ -251,7 +251,7 @@ const PostInfoAndMedia = ({ post, postReplyCount = 0, roles, threadNumber }: Pos
onClick={() => handleUserAddressClick(userID, postCid)}
style={{ backgroundColor: userIDBackgroundColor, color: userIDTextColor }}
>
{userID}
{userID?.slice(0, 8)}
</span>
}
content={`${numberOfPostsByAuthor === 1 ? t('1_post_by_this_id') : t('x_posts_by_this_id', { number: numberOfPostsByAuthor })}`}