add spacing in ThreadRow

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2025-07-14 09:27:57 +02:00
parent 429e38e685
commit cd068d42db
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -80,6 +80,7 @@ fun ThreadRow(
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Companion.Ellipsis overflow = TextOverflow.Companion.Ellipsis
) )
Spacer(modifier = Modifier.Companion.width(4.dp))
Text( Text(
text = numReplies, text = numReplies,
style = MaterialTheme.typography.titleSmall, style = MaterialTheme.typography.titleSmall,
@ -108,14 +109,13 @@ fun ThreadRow(
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Companion.Ellipsis overflow = TextOverflow.Companion.Ellipsis
) )
Spacer(modifier = Modifier.Companion.width(4.dp))
Text( Text(
text = date, text = date,
style = MaterialTheme.typography.bodyMedium, style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant, color = MaterialTheme.colorScheme.onSurfaceVariant,
) )
} }
} }
Spacer(modifier = Modifier.Companion.width(16.dp)) Spacer(modifier = Modifier.Companion.width(16.dp))
@ -179,8 +179,8 @@ fun ThreadRowDirectMentionPreview() {
ThreadRow( ThreadRow(
roomToken = "1234", roomToken = "1234",
threadId = 123, threadId = 123,
firstLine = "first message", firstLine = "first message with a verrrrrrrrrrrrrrrrrrrrrrrrry long text",
secondLine = "last message", secondLine = "last message with a verrrrrrrrrrrrrrrrrrrrrrrrry long text",
firstLineTitle = "Marsellus", firstLineTitle = "Marsellus",
secondLineTitle = "Mia:", secondLineTitle = "Mia:",
numReplies = "12 replies", numReplies = "12 replies",