Skip to content

Commit

Permalink
perf: hide divider
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Aug 4, 2024
1 parent 1dcc0b0 commit ed0ccfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/kotlin/li/songe/gkd/ui/SnapshotPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ fun SnapshotPage() {
modifier = Modifier.padding(contentPadding),
) {
items(snapshots, { it.id }) { snapshot ->
if (snapshot.id != snapshots.firstOrNull()?.id) {
HorizontalDivider()
}
Column(modifier = Modifier
.fillMaxWidth()
.clickable {
Expand Down Expand Up @@ -160,7 +163,6 @@ fun SnapshotPage() {
Text(text = "null", color = LocalContentColor.current.copy(alpha = 0.5f))
}
}
HorizontalDivider()
}
item {
Spacer(modifier = Modifier.height(EmptyHeight))
Expand Down

0 comments on commit ed0ccfd

Please sign in to comment.