style(post): mod's display name was missing color

This commit is contained in:
Tom (plebeius.eth)
2024-08-22 12:16:26 +02:00
parent 999990bee1
commit 1152bc7f9e
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ const PostInfo = ({ openReplyModal, post, postReplyCount = 0, roles, isHidden }:
) : (
_.capitalize(t('anonymous'))
)}
{authorRole && ` ## Board ${authorRole}`}{' '}
<span className='capitalize'>{authorRole && ` ## Board ${authorRole}`} </span>
</span>
{!(isDescription || isRules) && (
<>
+3 -3
View File
@@ -64,17 +64,17 @@ const PostInfoAndMedia = ({ openReplyModal, post, postReplyCount = 0, roles }: P
<span className={`${styles.name} ${(isDescription || isRules || authorRole) && styles.capcodeMod}`}>
{displayName ? (
displayName.length <= 20 ? (
<span className={styles.name}>{displayName}</span>
displayName
) : (
<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')}`}
/>
)
) : (
_.capitalize(t('anonymous'))
)}
{authorRole && ` ## Board ${authorRole}`}{' '}
<span className='capitalize'>{authorRole && ` ## Board ${authorRole}`} </span>
</span>
{!(isDescription || isRules) && (
<>
-1
View File
@@ -430,7 +430,6 @@
.capcodeMod {
color: var(--post-capcode-mod-text-color) !important;
text-transform: capitalize;
}
.pendingCid {