Skip to content

Commit 02dd796

Browse files
committed
Space must be above the item.
1 parent 1c7c8e6 commit 02dd796

File tree

1 file changed

+5
-5
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components

1 file changed

+5
-5
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ fun TimelineItemEventRow(
126126
}
127127

128128
Column(modifier = modifier.fillMaxWidth()) {
129+
if (event.groupPosition.isNew()) {
130+
Spacer(modifier = Modifier.height(16.dp))
131+
} else {
132+
Spacer(modifier = Modifier.height(2.dp))
133+
}
129134
if (canReply) {
130135
val state: SwipeableActionsState = rememberSwipeableActionsState()
131136
val offset = state.offset.value
@@ -177,11 +182,6 @@ fun TimelineItemEventRow(
177182
onMoreReactionsClicked = { onMoreReactionsClick(event) },
178183
)
179184
}
180-
if (event.groupPosition.isNew()) {
181-
Spacer(modifier = Modifier.height(16.dp))
182-
} else {
183-
Spacer(modifier = Modifier.height(2.dp))
184-
}
185185
}
186186
}
187187

0 commit comments

Comments
 (0)