Skip to content

Commit

Permalink
perf: CategoryPage HorizontalDivider
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Mar 8, 2024
1 parent 17af46e commit 99bb366
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/kotlin/li/songe/gkd/ui/CategoryPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Card
import androidx.compose.material3.FloatingActionButton
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.LocalContentColor
Expand Down Expand Up @@ -165,6 +166,9 @@ fun CategoryPage(subsItemId: Long) {
)
}
}
if (categories.lastOrNull() !== category) {
HorizontalDivider()
}
}
item {
Spacer(modifier = Modifier.height(40.dp))
Expand Down

0 comments on commit 99bb366

Please sign in to comment.