feat: update FAB positioning logic in GroupSetupScreen to account for emoji panel and keyboard visibility
This commit is contained in:
@@ -228,11 +228,13 @@ fun GroupSetupScreen(
|
|||||||
val imeBottomDp = with(density) { imeBottomPx.toDp() }
|
val imeBottomDp = with(density) { imeBottomPx.toDp() }
|
||||||
val fabBottomPadding =
|
val fabBottomPadding =
|
||||||
if (coordinator.isEmojiBoxVisible) {
|
if (coordinator.isEmojiBoxVisible) {
|
||||||
// Emoji panel height is already reserved by Scaffold bottomBar.
|
// Emoji panel is shown as Scaffold bottomBar → paddingValues already
|
||||||
|
// reserves space for it, so FAB only needs a small offset above it.
|
||||||
14.dp
|
14.dp
|
||||||
} else if (imeBottomDp > 0.dp) {
|
} else if (imeBottomDp > 0.dp) {
|
||||||
// System keyboard is not part of Scaffold content padding.
|
// System keyboard is open but NOT covered by paddingValues.
|
||||||
imeBottomDp + 14.dp
|
// Place FAB at the same visual position as with the emoji panel.
|
||||||
|
14.dp + imeBottomDp
|
||||||
} else {
|
} else {
|
||||||
18.dp
|
18.dp
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user