@momo-kits/native-kits 0.117.1-beta.18 → 0.117.1-beta.19
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.
|
@@ -4,6 +4,7 @@ import androidx.compose.runtime.Composable
|
|
|
4
4
|
import androidx.compose.ui.Modifier
|
|
5
5
|
import androidx.compose.ui.graphics.Color
|
|
6
6
|
import androidx.compose.ui.text.style.TextAlign
|
|
7
|
+
import androidx.compose.ui.text.style.TextOverflow
|
|
7
8
|
import androidx.compose.ui.unit.sp
|
|
8
9
|
import androidx.compose.ui.zIndex
|
|
9
10
|
import vn.momo.kits.components.Text
|
|
@@ -25,6 +26,7 @@ fun HeaderTitle(
|
|
|
25
26
|
lineHeight = 22.sp,
|
|
26
27
|
),
|
|
27
28
|
color = color,
|
|
28
|
-
maxLines = 1
|
|
29
|
+
maxLines = 1,
|
|
30
|
+
overflow = TextOverflow.Ellipsis,
|
|
29
31
|
)
|
|
30
32
|
}
|
|
@@ -108,13 +108,13 @@ fun PopupNotify(
|
|
|
108
108
|
RoundedCornerShape(Radius.L)
|
|
109
109
|
)
|
|
110
110
|
) {
|
|
111
|
-
image.
|
|
111
|
+
if(image.isNotEmpty()) {
|
|
112
112
|
Image(
|
|
113
113
|
source = image,
|
|
114
114
|
modifier = Modifier.fillMaxWidth().aspectRatio(1.777f),
|
|
115
|
-
options = Options(alignment =
|
|
116
|
-
)
|
|
117
|
-
|
|
115
|
+
options = Options(alignment = Alignment.Center)
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
118
|
|
|
119
119
|
Column(modifier = Modifier.padding(Spacing.XL)) {
|
|
120
120
|
Text(
|