diff --git a/app/src/main/java/dev/kaizen/app/chat/ChatComponents.kt b/app/src/main/java/dev/kaizen/app/chat/ChatComponents.kt index 061f454..75ee18c 100644 --- a/app/src/main/java/dev/kaizen/app/chat/ChatComponents.kt +++ b/app/src/main/java/dev/kaizen/app/chat/ChatComponents.kt @@ -162,7 +162,12 @@ fun EmptyHero(userName: String, onPick: (String) -> Unit, modifier: Modifier = M SuggestionPills(onPick) } - Spacer(Modifier.height(142.dp)) // Clear the floating bottom dock + // Dynamically shrink the bottom spacer when the keyboard is open. + // This ensures the remaining elements fit perfectly into the space above the keyboard + // without causing the column to exceed the screen height and trigger an automatic scroll. + // As a result, the greeting remains perfectly stationary and visible while typing! + val bottomSpacerHeight = if (isKeyboardOpen) 72.dp else 142.dp + Spacer(Modifier.height(bottomSpacerHeight)) } }