@momo-kits/native-kits 0.117.2-beta.2 → 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.
|
@@ -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
|
}
|