fix input field clipped by keyboard
Add imePadding() to the bottom dock so it pushes above the soft keyboard. Previously only navigationBarsPadding() was set, which handles the gesture bar but not the IME — the input field was partially hidden behind the keyboard suggestion row.
This commit is contained in:
parent
532cb8c27b
commit
278d98d125
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import androidx.compose.foundation.layout.Spacer
|
|||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.imePadding
|
||||
import androidx.compose.foundation.layout.navigationBarsPadding
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
|
|
@ -566,6 +567,7 @@ fun ChatScreen(
|
|||
)
|
||||
)
|
||||
.navigationBarsPadding()
|
||||
.imePadding()
|
||||
.then(if (isTablet) Modifier.widthIn(max = 720.dp) else Modifier)
|
||||
) {
|
||||
Spacer(Modifier.height(24.dp))
|
||||
|
|
|
|||
Loading…
Reference in a new issue