fix chat screen

This commit is contained in:
2026-05-19 21:06:02 +07:00
parent e5710f376e
commit 43116958a2

View File

@@ -168,7 +168,7 @@ fun ChatScreen(
.fillMaxSize() .fillMaxSize()
.padding(bottom = innerPadding.calculateBottomPadding()) .padding(bottom = innerPadding.calculateBottomPadding())
) { ) {
if (groupedMessages.isNotEmpty()) { if (messages.isNotEmpty()) {
LazyColumn( LazyColumn(
modifier = Modifier modifier = Modifier
.weight(1f) .weight(1f)
@@ -189,7 +189,9 @@ fun ChatScreen(
} }
} else { } else {
Box( Box(
modifier = Modifier.fillMaxSize(), modifier = Modifier
.weight(1f)
.fillMaxWidth(),
contentAlignment = Alignment.Center contentAlignment = Alignment.Center
) { ) {
Column(horizontalAlignment = Alignment.CenterHorizontally) { Column(horizontalAlignment = Alignment.CenterHorizontally) {