Skip to content

Commit 771c94f

Browse files
authored
Sepa Payone country code ui fix (#107)
1 parent 2ca70d6 commit 771c94f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/src/main/java/io/snabble/sdk/ui/payment/payone/sepa/form/ui/widget/IbanFieldWidget.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package io.snabble.sdk.ui.payment.payone.sepa.form.ui.widget
33
import androidx.compose.foundation.layout.Row
44
import androidx.compose.foundation.layout.fillMaxWidth
55
import androidx.compose.foundation.layout.padding
6-
import androidx.compose.foundation.layout.wrapContentSize
76
import androidx.compose.foundation.text.KeyboardActions
87
import androidx.compose.foundation.text.KeyboardOptions
98
import androidx.compose.material3.ExperimentalMaterial3Api
@@ -35,9 +34,7 @@ fun IbanFieldWidget(
3534
verticalAlignment = Alignment.CenterVertically
3635
) {
3736
OutlinedTextField(
38-
modifier = Modifier
39-
.wrapContentSize()
40-
.weight(1f),
37+
modifier = Modifier.weight(1f),
4138
value = "DE",
4239
onValueChange = {},
4340
label = {},
@@ -47,10 +44,13 @@ fun IbanFieldWidget(
4744
colors = TextFieldDefaults.outlinedTextFieldColors(
4845
disabledLabelColor = MaterialTheme.colorScheme.onSurface,
4946
disabledTextColor = MaterialTheme.colorScheme.onSurface,
50-
)
47+
),
48+
singleLine = true,
49+
maxLines = 1,
5150
)
5251
OutlinedTextField(
5352
modifier = Modifier
53+
.weight(5f)
5454
.padding(start = 8.dp),
5555
value = iban,
5656
onValueChange = { input ->

0 commit comments

Comments
 (0)