fix: attachment menu aligned to bottom-left above the + button

This commit is contained in:
Bruno Deanoz 2026-06-21 18:58:22 +02:00
parent da01b57f08
commit 5c646ae4a1

View file

@ -552,13 +552,12 @@ fun ChatScreen(
Spacer(Modifier.height(16.dp))
}
// Attachment menu — floats above the bottom dock
// Attachment menu — floats above the + button at bottom-left
androidx.compose.animation.AnimatedVisibility(
visible = showAttachMenu,
modifier = Modifier
.align(Alignment.BottomCenter)
.padding(bottom = 140.dp)
.then(if (isTablet) Modifier.widthIn(max = 720.dp) else Modifier),
.align(Alignment.BottomStart)
.padding(start = 20.dp, bottom = 140.dp),
enter = androidx.compose.animation.fadeIn() + androidx.compose.animation.slideInVertically { it / 2 },
exit = androidx.compose.animation.fadeOut() + androidx.compose.animation.slideOutVertically { it / 2 },
) {