@@ -2,6 +2,7 @@ package com.jetpackduba.gitnuro.ui.dialogs.errors
2
2
3
3
import androidx.compose.foundation.*
4
4
import androidx.compose.foundation.layout.*
5
+ import androidx.compose.foundation.text.selection.SelectionContainer
5
6
import androidx.compose.material.*
6
7
import androidx.compose.runtime.*
7
8
import androidx.compose.ui.Alignment
@@ -32,7 +33,7 @@ fun ErrorDialog(
32
33
val clipboard = LocalClipboardManager .current
33
34
var showStackTrace by remember { mutableStateOf(false ) }
34
35
35
- MaterialDialog (
36
+ MaterialDialog (
36
37
onCloseRequested = onAccept,
37
38
) {
38
39
Column (
@@ -60,14 +61,16 @@ fun ErrorDialog(
60
61
)
61
62
}
62
63
63
- Text (
64
- text = error.exception.message.orEmpty(), // TODO
65
- color = MaterialTheme .colors.onBackground,
66
- modifier = Modifier
67
- .padding(top = 16 .dp)
68
- .widthIn(max = 600 .dp),
69
- style = MaterialTheme .typography.body2,
70
- )
64
+ SelectionContainer {
65
+ Text (
66
+ text = error.exception.message.orEmpty(), // TODO
67
+ color = MaterialTheme .colors.onBackground,
68
+ modifier = Modifier
69
+ .padding(top = 16 .dp)
70
+ .widthIn(max = 600 .dp),
71
+ style = MaterialTheme .typography.body2,
72
+ )
73
+ }
71
74
72
75
if (showStackTrace) {
73
76
Box (
0 commit comments