@momo-kits/native-kits 0.117.2-beta.1 → 0.117.2-beta.3
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.
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Header.kt +6 -3
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderTitle.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +1 -1
- package/ios/Popup/PopupPromotion.swift +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ import androidx.compose.ui.graphics.Color
|
|
|
27
27
|
import androidx.compose.ui.graphics.graphicsLayer
|
|
28
28
|
import androidx.compose.ui.semantics.semantics
|
|
29
29
|
import androidx.compose.ui.semantics.testTag
|
|
30
|
+
import androidx.compose.ui.text.style.TextAlign
|
|
30
31
|
import androidx.compose.ui.unit.Dp
|
|
31
32
|
import androidx.compose.ui.unit.dp
|
|
32
33
|
import androidx.compose.ui.zIndex
|
|
@@ -167,9 +168,11 @@ fun Header(
|
|
|
167
168
|
HeaderTitle(
|
|
168
169
|
title = title,
|
|
169
170
|
color = tintIconColor,
|
|
170
|
-
modifier = Modifier
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
modifier = Modifier
|
|
172
|
+
.setAutomationId("title_navigation_header")
|
|
173
|
+
.fillMaxWidth(fraction = if(titlePosition == TitlePosition.LEFT) 0.7f else 0.5f)
|
|
174
|
+
,
|
|
175
|
+
textAlign = if(titlePosition == TitlePosition.LEFT) TextAlign.Start else TextAlign.Center
|
|
173
176
|
)
|
|
174
177
|
}
|
|
175
178
|
}
|
|
@@ -126,7 +126,7 @@ fun PopupNotify(
|
|
|
126
126
|
content(Modifier.padding(top = Spacing.S))
|
|
127
127
|
if (error.isNotEmpty()) {
|
|
128
128
|
Text(
|
|
129
|
-
text = error,
|
|
129
|
+
text = "Mã lỗi: " + error,
|
|
130
130
|
style = Typography.descriptionXsRegular,
|
|
131
131
|
color = AppTheme.current.colors.text.hint,
|
|
132
132
|
maxLines = 1,
|
|
@@ -20,7 +20,7 @@ public struct PopupPromotion: View {
|
|
|
20
20
|
public var body: some View {
|
|
21
21
|
VStack(spacing: 8) {
|
|
22
22
|
if(imageUrl.isEmpty) {
|
|
23
|
-
Icon(source: "media_fail")
|
|
23
|
+
Icon(source: "media_fail", size: UIScreen.main.bounds.width - Spacing.XL * 2)
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
WebImage(url: URL(string: imageUrl)!)
|