mirror of
https://github.com/twofas/2fas-android.git
synced 2024-11-24 03:09:54 +01:00
Fix ime padding on browser ext request screen
This commit is contained in:
parent
7350788712
commit
20bc0b841c
@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.Row
|
||||
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.width
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
@ -19,12 +20,9 @@ import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.focus.FocusRequester
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalFocusManager
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
@ -95,9 +93,6 @@ private fun ScreenContent(
|
||||
) {
|
||||
val strings = TwLocale.strings
|
||||
val backDispatcher = LocalBackDispatcher
|
||||
val focusRequester = remember { FocusRequester() }
|
||||
val focusManager = LocalFocusManager.current
|
||||
|
||||
|
||||
Scaffold(
|
||||
topBar = {
|
||||
@ -112,7 +107,11 @@ private fun ScreenContent(
|
||||
}
|
||||
}
|
||||
) { padding ->
|
||||
LazyColumn(modifier = Modifier.padding(padding)) {
|
||||
LazyColumn(
|
||||
modifier = Modifier
|
||||
.padding(padding)
|
||||
.imePadding()
|
||||
) {
|
||||
item {
|
||||
Text(
|
||||
text = strings.browserRequestInfo.format(uiState.browserName, uiState.domain),
|
||||
|
Loading…
Reference in New Issue
Block a user