From ad560e43c25a4e58d9061144fd2226d4ef205ee7 Mon Sep 17 00:00:00 2001 From: Sebastian Neubauer Date: Sun, 28 Jun 2026 11:59:54 +0200 Subject: [PATCH] Fix mock edition window crashing --- .../network/mock/edition/view/NetworkEditionWindow.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/mock/edition/view/NetworkEditionWindow.kt b/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/mock/edition/view/NetworkEditionWindow.kt index ef01e24f6..110e7348c 100644 --- a/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/mock/edition/view/NetworkEditionWindow.kt +++ b/FloconDesktop/composeApp/src/commonMain/kotlin/io/github/openflocon/flocondesktop/features/network/mock/edition/view/NetworkEditionWindow.kt @@ -406,11 +406,13 @@ fun MockEditorScreen( if(isEditSelected) { FloconTextField( value = bodyResponse.body, - minLines = 10, onValueChange = { newValue -> mock = mock.copy(bodyResponse = bodyResponse.copy(body = newValue)) }, - modifier = Modifier.fillMaxWidth(), + modifier = Modifier + .fillMaxWidth() + .height(400.dp), + singleLine = false, containerColor = FloconTheme.colorPalette.primary ) } else {