1
Fork 0
mirror of https://github.com/Steffo99/twom.git synced 2024-11-22 08:04:26 +00:00

Make various input fields single line

This commit is contained in:
Steffo 2023-12-07 03:41:37 +01:00
parent 61d9921693
commit 26551a99cd
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 3 additions and 0 deletions

View file

@ -59,6 +59,7 @@ fun CreateActivityContent(
.height(60.dp) .height(60.dp)
.padding(start = 10.dp) .padding(start = 10.dp)
.fillMaxWidth(), .fillMaxWidth(),
singleLine = true,
label = { label = {
Text(stringResource(R.string.create_name_label)) Text(stringResource(R.string.create_name_label))
}, },

View file

@ -58,6 +58,7 @@ fun LoginActivityContent(
Row(TwoMPadding.base) { Row(TwoMPadding.base) {
TextField( TextField(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
singleLine = true,
value = username, value = username,
onValueChange = { username = it }, onValueChange = { username = it },
label = { label = {
@ -74,6 +75,7 @@ fun LoginActivityContent(
Row(TwoMPadding.base) { Row(TwoMPadding.base) {
PasswordField( PasswordField(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
singleLine = true,
value = password, value = password,
onValueChange = { password = it }, onValueChange = { password = it },
label = { label = {