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