Skip to content

Commit

Permalink
[5304] enableEdgeToEdge hides EditText/TextField
Browse files Browse the repository at this point in the history
  • Loading branch information
kanat committed Aug 29, 2024
1 parent 4242d3b commit 710802f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.ime
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBarsPadding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
Expand Down Expand Up @@ -202,6 +203,7 @@ public fun MessagesScreen(
Box(
modifier = Modifier
.fillMaxSize()
.systemBarsPadding()
.testTag("Stream_MessagesScreen"),
) {
Scaffold(
Expand Down Expand Up @@ -311,7 +313,8 @@ internal fun DefaultTopBarContent(

MessageListHeader(
modifier = Modifier
.height(56.dp),
.height(56.dp)
.systemBarsPadding(),
channel = listViewModel.channel,
currentUser = user,
typingUsers = listViewModel.typingUsers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
Expand Down Expand Up @@ -217,7 +218,7 @@ public fun MessageComposer(
val messageComposerState by viewModel.messageComposerState.collectAsState()

MessageComposer(
modifier = modifier,
modifier = modifier.imePadding(),
onSendMessage = { text, attachments ->
val messageWithData = viewModel.buildNewMessage(text, attachments)

Expand Down

0 comments on commit 710802f

Please sign in to comment.