Skip to content

Commit

Permalink
fix: Toolbar alignment (openedx#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-chekyrta authored Mar 26, 2024
1 parent f49283d commit f13bd47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/main/java/org/openedx/core/ui/ComposeCommon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fun Toolbar(
canShowBackBtn: Boolean = false,
onBackClick: () -> Unit = {}
) {
Row(
Box(
modifier = modifier
.fillMaxWidth()
.height(48.dp),
Expand All @@ -163,9 +163,10 @@ fun Toolbar(

Text(
modifier = Modifier
.fillMaxWidth()
.testTag("txt_toolbar_title")
.align(Alignment.CenterVertically)
.padding(end = 16.dp),
.align(Alignment.Center)
.padding(start = 48.dp, end = 48.dp),
text = label,
color = MaterialTheme.appColors.textPrimary,
style = MaterialTheme.appTypography.titleMedium,
Expand Down

0 comments on commit f13bd47

Please sign in to comment.