Fix single line inputs on edit service

This commit is contained in:
Rafał Kobyłko 2023-10-21 20:49:38 +02:00
parent 289147229f
commit efe4dc8bd2
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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),