mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-21 18:10:33 +02:00
Block like breaks in the User Information block of the layout.
This commit is contained in:
@@ -110,12 +110,13 @@ fun NoteCompose(baseNote: Note, modifier: Modifier = Modifier, isInnerNote: Bool
|
|||||||
Column(modifier = Modifier.padding(start = if (!isInnerNote) 10.dp else 0.dp)) {
|
Column(modifier = Modifier.padding(start = if (!isInnerNote) 10.dp else 0.dp)) {
|
||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||||
if (author != null)
|
if (author != null)
|
||||||
UsernameDisplay(author)
|
UsernameDisplay(author, Modifier.weight(1f))
|
||||||
|
|
||||||
if (note.event !is RepostEvent) {
|
if (note.event !is RepostEvent) {
|
||||||
Text(
|
Text(
|
||||||
timeAgo(note.event?.createdAt),
|
timeAgo(note.event?.createdAt),
|
||||||
color = MaterialTheme.colors.onSurface.copy(alpha = 0.32f)
|
color = MaterialTheme.colors.onSurface.copy(alpha = 0.32f),
|
||||||
|
maxLines = 1
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Text(
|
Text(
|
||||||
|
Reference in New Issue
Block a user