From 2ecec9241ee6526bd381ab6c65acf06c66908e73 Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Wed, 27 Nov 2024 11:48:53 +0100 Subject: [PATCH] Align standalone sample textfields --- .../jewel/samples/standalone/view/component/TextFields.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/component/TextFields.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/component/TextFields.kt index 0d18f89ad3..ca676b1130 100644 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/component/TextFields.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/component/TextFields.kt @@ -62,7 +62,7 @@ fun TextFields() { @Composable private fun TextFieldsRows(readOnly: Boolean) { - Column(modifier = Modifier.padding(vertical = 4.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) { + Column(modifier = Modifier.padding(vertical = 4.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) { Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.CenterVertically) { val state1 = rememberTextFieldState("TextField") TextField(state = state1, modifier = Modifier.width(200.dp), readOnly = readOnly) @@ -85,7 +85,7 @@ private fun TextFieldsRows(readOnly: Boolean) { ) } - Row(horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.CenterVertically) { + Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.CenterVertically) { val state1 = rememberTextFieldState("") TextField( state = state1, @@ -99,7 +99,7 @@ private fun TextFieldsRows(readOnly: Boolean) { TextField(state = state2, enabled = false, modifier = Modifier.width(200.dp), readOnly = readOnly) } - Row(horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.Top) { + Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.Top) { val state1 = rememberTextFieldState("") TextField( state = state1,