fix: attachment menu aligned to bottom-left above the + button
This commit is contained in:
parent
da01b57f08
commit
5c646ae4a1
1 changed files with 3 additions and 4 deletions
|
|
@ -552,13 +552,12 @@ fun ChatScreen(
|
||||||
Spacer(Modifier.height(16.dp))
|
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(
|
androidx.compose.animation.AnimatedVisibility(
|
||||||
visible = showAttachMenu,
|
visible = showAttachMenu,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.BottomCenter)
|
.align(Alignment.BottomStart)
|
||||||
.padding(bottom = 140.dp)
|
.padding(start = 20.dp, bottom = 140.dp),
|
||||||
.then(if (isTablet) Modifier.widthIn(max = 720.dp) else Modifier),
|
|
||||||
enter = androidx.compose.animation.fadeIn() + androidx.compose.animation.slideInVertically { it / 2 },
|
enter = androidx.compose.animation.fadeIn() + androidx.compose.animation.slideInVertically { it / 2 },
|
||||||
exit = androidx.compose.animation.fadeOut() + androidx.compose.animation.slideOutVertically { it / 2 },
|
exit = androidx.compose.animation.fadeOut() + androidx.compose.animation.slideOutVertically { it / 2 },
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue