Skip to content

Commit 447b9a9

Browse files
Fix: Explicitly set Top arrangement for PhotoReasoningScreen main Column
To further address issues with status cards appearing "in the middle", this commit explicitly sets `verticalArrangement = Arrangement.Top` on the main `Column` within `PhotoReasoningScreen.kt`. Combined with `fillMaxHeight()` on this Column and `weight(1f)` on the chat message `LazyColumn`, this aims to ensure that all elements are laid out from the top and that the status cards are pushed to the bottom of the screen.
1 parent c8d703e commit 447b9a9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningScreen.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,10 @@ fun PhotoReasoningScreen(
273273
}
274274
}
275275

276-
Column(modifier = Modifier.padding(all = 16.dp).fillMaxHeight()) {
276+
Column(
277+
modifier = Modifier.padding(all = 16.dp).fillMaxHeight(),
278+
verticalArrangement = Arrangement.Top
279+
) {
277280
Card(
278281
modifier = Modifier.fillMaxWidth().padding(bottom = 16.dp),
279282
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primaryContainer)

0 commit comments

Comments
 (0)