Skip to content

Commit 6d1df2b

Browse files
committed
feat: quetsion type T should be visibly taller (show room for 2 lines)
1 parent 2b4fa2e commit 6d1df2b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pretixscan/composeApp/src/commonMain/kotlin/eu/pretix/desktop/app/ui/FieldTextInput.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fun FieldTextInput(
2424
label: String? = null,
2525
value: String,
2626
maxLines: Int = 1,
27+
minLines: Int = 1,
2728
onValueChange: (String) -> Unit,
2829
leading: @Composable (() -> Unit)? = null,
2930
trailing: @Composable (() -> Unit)? = null,
@@ -40,6 +41,7 @@ fun FieldTextInput(
4041
if (enabled) onValueChange(it)
4142
},
4243
maxLines = maxLines,
44+
minLines = minLines,
4345
singleLine = maxLines == 1,
4446
modifier = modifier,
4547
) {

pretixscan/composeApp/src/commonMain/kotlin/eu/pretix/scan/tickets/presentation/QuestionsDialogView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ fun QuestionsDialogView(
149149
value = field.value ?: "",
150150
onValueChange = { viewModel.updateAnswer(field.id, it) },
151151
maxLines = 2,
152+
minLines = 2,
152153
label = field.label,
153154
required = field.required
154155
)

0 commit comments

Comments
 (0)