From 1620ea75fddee2b68a33a36f1f3cd128360b15f7 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 15 Nov 2021 22:37:28 +0530 Subject: [PATCH] common: tweak commenter name and adjust content description --- .../kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt | 4 ++-- .../kotlin/dev/msfjarvis/claw/common/posts/LobstersItem.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt b/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt index c9568a40..37728329 100644 --- a/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt +++ b/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt @@ -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)) diff --git a/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/posts/LobstersItem.kt b/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/posts/LobstersItem.kt index 00fb4594..e6740c60 100644 --- a/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/posts/LobstersItem.kt +++ b/common/src/commonMain/kotlin/dev/msfjarvis/claw/common/posts/LobstersItem.kt @@ -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}", ) }