mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix: shorten rendered user ID display from 12 to 8 characters
This commit is contained in:
@@ -286,7 +286,7 @@ const PostInfo = ({
|
|||||||
onClick={() => handleUserAddressClick(userID, postCid)}
|
onClick={() => handleUserAddressClick(userID, postCid)}
|
||||||
style={{ backgroundColor: userIDBackgroundColor, color: userIDTextColor }}
|
style={{ backgroundColor: userIDBackgroundColor, color: userIDTextColor }}
|
||||||
>
|
>
|
||||||
{userID}
|
{userID?.slice(0, 8)}
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
content={`${numberOfPostsByAuthor === 1 ? t('1_post_by_this_id') : t('x_posts_by_this_id', { number: numberOfPostsByAuthor })}`}
|
content={`${numberOfPostsByAuthor === 1 ? t('1_post_by_this_id') : t('x_posts_by_this_id', { number: numberOfPostsByAuthor })}`}
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ const PostInfoAndMedia = ({ post, postReplyCount = 0, roles, threadNumber }: Pos
|
|||||||
onClick={() => handleUserAddressClick(userID, postCid)}
|
onClick={() => handleUserAddressClick(userID, postCid)}
|
||||||
style={{ backgroundColor: userIDBackgroundColor, color: userIDTextColor }}
|
style={{ backgroundColor: userIDBackgroundColor, color: userIDTextColor }}
|
||||||
>
|
>
|
||||||
{userID}
|
{userID?.slice(0, 8)}
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
content={`${numberOfPostsByAuthor === 1 ? t('1_post_by_this_id') : t('x_posts_by_this_id', { number: numberOfPostsByAuthor })}`}
|
content={`${numberOfPostsByAuthor === 1 ? t('1_post_by_this_id') : t('x_posts_by_this_id', { number: numberOfPostsByAuthor })}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user