common: tweak commenter name and adjust content description

This commit is contained in:
Harsh Shandilya 2021-11-15 22:37:28 +05:30
parent a73871f421
commit 1620ea75fd
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 3 additions and 3 deletions

View file

@ -54,9 +54,9 @@ fun CommentEntry(
CommentTreeColors(indentLevel = indentLevel)
Column(modifier = Modifier.padding(start = 12.dp, end = 8.dp, top = 4.dp, bottom = 4.dp)) {
SubmitterName(
text = "Submitted by ${comment.user.username}",
text = comment.user.username,
avatarUrl = "https://lobste.rs/${comment.user.avatarUrl}",
contentDescription = "Submitted by ${comment.user.username}",
contentDescription = "User avatar for ${comment.user.username}",
)
MaterialRichText(modifier = Modifier.padding(top = 8.dp)) {
Markdown(htmlToMarkdown(comment.comment))

View file

@ -92,7 +92,7 @@ fun PostDetails(
SubmitterName(
text = "Submitted by ${post.submitterName}",
avatarUrl = "https://lobste.rs/${post.submitterAvatarUrl}",
contentDescription = "Submitted by ${post.submitterName}",
contentDescription = "User avatar for ${post.submitterName}",
)
}