Skip to content

Commit

Permalink
fix: MainGroupList last VerticalDivider
Browse files Browse the repository at this point in the history
  • Loading branch information
KusStar committed May 29, 2024
1 parent e448a46 commit 3fcf91c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ fun MainGroupList(
val textMeasurer = rememberTextMeasurer()

val groupList = getMainGroupList(data)
AnimatedVisibility(visible = data.isNotEmpty()) {
AnimatedVisibility(visible = groupList.isNotEmpty()) {
LazyRow(
modifier = Modifier
.padding(vertical = if (settingsState.appItemHorizontal) 12.dp else 8.dp)
Expand Down Expand Up @@ -315,7 +315,7 @@ fun MainGroupList(
}
}

if (settingsState.appItemHorizontal && index < data.size - 1) {
if (settingsState.appItemHorizontal && index < groupList.size - 1) {
VerticalDivider(modifier = Modifier.height(16.dp))
}
}
Expand Down

0 comments on commit 3fcf91c

Please sign in to comment.