Fix bad modifier parameter usage.

This commit is contained in:
Benoit Marty
2023-07-07 18:54:08 +02:00
committed by Benoit Marty
parent 3e69985fd6
commit aa7db3150d
@@ -121,6 +121,7 @@ fun TimelineItemEventRow(
inReplyToClick(inReplyToEventId) inReplyToClick(inReplyToEventId)
} }
Column(modifier = modifier.fillMaxWidth()) {
if (canReply) { if (canReply) {
val dismissState = rememberDismissState( val dismissState = rememberDismissState(
confirmValueChange = { confirmValueChange = {
@@ -166,11 +167,11 @@ fun TimelineItemEventRow(
onMoreReactionsClicked = { onMoreReactionsClick(event) }, onMoreReactionsClicked = { onMoreReactionsClick(event) },
) )
} }
// This is assuming that we are in a ColumnScope, but this is OK, for both Preview and real usage.
if (event.groupPosition.isNew()) { if (event.groupPosition.isNew()) {
Spacer(modifier = modifier.height(16.dp)) Spacer(modifier = Modifier.height(16.dp))
} else { } else {
Spacer(modifier = modifier.height(2.dp)) Spacer(modifier = Modifier.height(2.dp))
}
} }
} }