mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-26 14:15:17 +01:00
add spacing in ThreadRow
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
429e38e685
commit
cd068d42db
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user