mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-24 03:42:15 +00:00
Fix: Items alignment when there's not enough elements to fill the screen
This commit is contained in:
parent
ef8ec5d159
commit
0ff3bc25d1
@ -84,7 +84,7 @@ fun <T> VerticalItemList(
|
||||
modifier = modifier
|
||||
.fillMaxSize()
|
||||
.background(backgroundColor),
|
||||
contentAlignment = Alignment.Center
|
||||
contentAlignment = if (list.isNullOrEmpty()) Alignment.Center else Alignment.TopStart
|
||||
) {
|
||||
if (!list.isNullOrEmpty()) {
|
||||
LazyColumn(verticalArrangement = spacedBy(4.dp)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user