From 43116958a258ceac38748fb0855bcf7595dc1dc8 Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Tue, 19 May 2026 21:06:02 +0700 Subject: [PATCH] fix chat screen --- .../androidMain/kotlin/su/reya/coop/screens/ChatScreen.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/composeApp/src/androidMain/kotlin/su/reya/coop/screens/ChatScreen.kt b/composeApp/src/androidMain/kotlin/su/reya/coop/screens/ChatScreen.kt index e5515a3..4c3a365 100644 --- a/composeApp/src/androidMain/kotlin/su/reya/coop/screens/ChatScreen.kt +++ b/composeApp/src/androidMain/kotlin/su/reya/coop/screens/ChatScreen.kt @@ -168,7 +168,7 @@ fun ChatScreen( .fillMaxSize() .padding(bottom = innerPadding.calculateBottomPadding()) ) { - if (groupedMessages.isNotEmpty()) { + if (messages.isNotEmpty()) { LazyColumn( modifier = Modifier .weight(1f) @@ -189,7 +189,9 @@ fun ChatScreen( } } else { Box( - modifier = Modifier.fillMaxSize(), + modifier = Modifier + .weight(1f) + .fillMaxWidth(), contentAlignment = Alignment.Center ) { Column(horizontalAlignment = Alignment.CenterHorizontally) {