File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
library/src/commonMain/kotlin/ro/cosminmihu/ktor/monitor/ui/detail Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11package ro.cosminmihu.ktor.monitor.ui.detail.body
22
33import androidx.compose.foundation.rememberScrollState
4- import androidx.compose.foundation.text.selection.SelectionContainer
54import androidx.compose.foundation.verticalScroll
65import androidx.compose.material3.MaterialTheme
76import androidx.compose.material3.Text
@@ -14,7 +13,9 @@ internal fun TextBody(
1413 text : AnnotatedString ,
1514 modifier : Modifier = Modifier
1615) {
17- SelectionContainer (modifier = modifier.verticalScroll(rememberScrollState())) {
18- Text (text = text, style = MaterialTheme .typography.bodyMedium)
19- }
16+ Text (
17+ text = text,
18+ style = MaterialTheme .typography.bodyMedium,
19+ modifier = modifier.verticalScroll(rememberScrollState())
20+ )
2021}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import androidx.compose.animation.AnimatedVisibility
44import androidx.compose.foundation.layout.Column
55import androidx.compose.foundation.layout.Row
66import androidx.compose.foundation.layout.padding
7+ import androidx.compose.foundation.text.selection.SelectionContainer
78import androidx.compose.material.icons.Icons
89import androidx.compose.material.icons.filled.KeyboardArrowDown
910import androidx.compose.material.icons.filled.KeyboardArrowUp
@@ -53,8 +54,10 @@ internal fun TransactionSection(
5354 }
5455
5556 AnimatedVisibility (show) {
56- Column {
57- content()
57+ SelectionContainer {
58+ Column {
59+ content()
60+ }
5861 }
5962 }
6063 }
You can’t perform that action at this time.
0 commit comments