fix: match the UI of highlighting post authors with the website

This commit is contained in:
Harsh Shandilya
2026-06-06 08:16:21 +05:30
parent e1d296a825
commit e24a3217d5
@@ -231,11 +231,13 @@ internal fun CommentEntry(
verticalAlignment = Alignment.CenterVertically,
) {
Text(
text = comment.user,
text =
buildString {
append(comment.user)
if (commentNode.isPostAuthor) append(" [OP]")
},
style = MaterialTheme.typography.labelLarge,
color =
if (commentNode.isPostAuthor) MaterialTheme.colorScheme.tertiary
else MaterialTheme.colorScheme.onSurfaceVariant,
color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.clickable { openUserProfile(comment.user) },
)
Spacer(Modifier.weight(1f))