File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
composeApp/src/commonMain/kotlin/presentation/compoments Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ package io.github.vrcmteam.vrcm.presentation.compoments
33import androidx.compose.foundation.background
44import androidx.compose.foundation.layout.Box
55import androidx.compose.foundation.layout.padding
6+ import androidx.compose.foundation.text.BasicText
7+ import androidx.compose.foundation.text.TextAutoSize
68import androidx.compose.material3.MaterialTheme
7- import androidx.compose.material3.Text
89import androidx.compose.runtime.Composable
910import androidx.compose.ui.Alignment
1011import androidx.compose.ui.Modifier
1112import androidx.compose.ui.draw.clip
1213import androidx.compose.ui.graphics.Color
1314import androidx.compose.ui.unit.dp
15+ import androidx.compose.ui.unit.sp
1416
1517@Composable
1618fun TextLabel (
@@ -29,10 +31,11 @@ fun TextLabel(
2931 .padding(horizontal = 8 .dp),
3032 contentAlignment = Alignment .Center
3133 ) {
32- Text (
34+ BasicText (
3335 text = text,
34- style = MaterialTheme .typography.labelSmall,
35- color = color
36+ style = MaterialTheme .typography.labelSmall.merge(color = color),
37+ autoSize = TextAutoSize .StepBased (8 .sp,MaterialTheme .typography.labelSmall.fontSize),
38+ maxLines = 1
3639 )
3740 }
3841}
You can’t perform that action at this time.
0 commit comments