@momo-kits/native-kits 0.117.2-beta.2 → 0.117.2-beta.4

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.
@@ -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.semantics {
171
- testTag = "title_navigation_header"
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
  }
@@ -27,6 +27,6 @@ fun HeaderTitle(
27
27
  ),
28
28
  color = color,
29
29
  maxLines = 1,
30
- overflow = TextOverflow.Ellipsis,
30
+ overflow = TextOverflow.Ellipsis
31
31
  )
32
32
  }
@@ -61,6 +61,7 @@ public struct PopupPromotion: View {
61
61
  }
62
62
  }
63
63
  .padding(8)
64
+ .frame(width: 40, height: 40)
64
65
  Spacer()
65
66
  }
66
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.117.2-beta.2",
3
+ "version": "0.117.2-beta.4",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},