mirror of
https://github.com/twofas/2fas-android.git
synced 2024-11-22 02:09:58 +01:00
Fix single line inputs on edit service
This commit is contained in:
parent
289147229f
commit
efe4dc8bd2
@ -154,6 +154,7 @@ internal fun EditServiceScreen(
|
||||
value = service.secret,
|
||||
labelText = stringResource(R.string.tokens__service_key),
|
||||
readOnly = true,
|
||||
singleLine = true,
|
||||
onValueChange = {},
|
||||
keyboardOptions = KeyboardOptions.Default.copy(
|
||||
keyboardType = KeyboardType.Password,
|
||||
@ -187,6 +188,7 @@ internal fun EditServiceScreen(
|
||||
value = service.info.orEmpty(),
|
||||
labelText = stringResource(R.string.tokens__additional_info),
|
||||
maxLength = 50,
|
||||
singleLine = true,
|
||||
onValueChange = { text -> viewModel.updateInfo(text, true) },
|
||||
keyboardOptions = KeyboardOptions.Default.copy(capitalization = KeyboardCapitalization.Sentences),
|
||||
modifier = Modifier
|
||||
|
@ -223,7 +223,7 @@ private fun Step(
|
||||
// Body
|
||||
Text(
|
||||
text = bodyText,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 24.dp),
|
||||
|
Loading…
Reference in New Issue
Block a user