@momo-kits/native-kits 0.89.15-beta.2 → 0.89.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,6 +22,7 @@ import androidx.compose.ui.Modifier
|
|
|
22
22
|
import androidx.compose.ui.draw.clip
|
|
23
23
|
import androidx.compose.ui.graphics.Color
|
|
24
24
|
import androidx.compose.ui.text.TextStyle
|
|
25
|
+
import androidx.compose.ui.text.style.TextOverflow
|
|
25
26
|
import androidx.compose.ui.unit.Dp
|
|
26
27
|
import androidx.compose.ui.unit.dp
|
|
27
28
|
import vn.momo.kits.const.AppTheme
|
|
@@ -116,7 +117,7 @@ fun getTextColor(type: ButtonType): Color {
|
|
|
116
117
|
fun RenderTitle(size: Size, title: String = "", type: ButtonType) {
|
|
117
118
|
val style = getStyle(size)
|
|
118
119
|
val color = getTextColor(type)
|
|
119
|
-
Text(style = style, text = title, color = color)
|
|
120
|
+
Text(style = style, text = title, color = color, overflow = TextOverflow.Ellipsis)
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
@Composable
|