Skip to content

Commit

Permalink
Fix: Limit the max width of log text
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Feb 7, 2023
1 parent f007296 commit 97eb253
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
)
Expand Down

0 comments on commit 97eb253

Please sign in to comment.