From 97eb2538649f8d844587a2a262eb1fa833250770 Mon Sep 17 00:00:00 2001 From: junkfood <69683722+junkfood02@users.noreply.github.com> Date: Wed, 8 Feb 2023 03:35:12 +0800 Subject: [PATCH] Fix: Limit the max width of log text --- .../main/java/com/junkfood/seal/ui/page/command/TaskLogPage.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/junkfood/seal/ui/page/command/TaskLogPage.kt b/app/src/main/java/com/junkfood/seal/ui/page/command/TaskLogPage.kt index ee171d0612..d57c984da1 100644 --- a/app/src/main/java/com/junkfood/seal/ui/page/command/TaskLogPage.kt +++ b/app/src/main/java/com/junkfood/seal/ui/page/command/TaskLogPage.kt @@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.text.selection.SelectionContainer import androidx.compose.foundation.verticalScroll @@ -128,6 +129,7 @@ fun TaskLogPage(onBackPressed: () -> Unit, taskHashCode: Int) { ) { SelectionContainer() { Text( + modifier = Modifier.widthIn(max = 800.dp), text = task.output, style = MaterialTheme.typography.bodyMedium.copy(fontFamily = FontFamily.Monospace) )