From f13bd4749c2c029e1e1134500a1100a7115c2413 Mon Sep 17 00:00:00 2001 From: Volodymyr Chekyrta <127732735+volodymyr-chekyrta@users.noreply.github.com> Date: Tue, 26 Mar 2024 08:40:53 +0200 Subject: [PATCH] fix: Toolbar alignment (#268) --- core/src/main/java/org/openedx/core/ui/ComposeCommon.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/openedx/core/ui/ComposeCommon.kt b/core/src/main/java/org/openedx/core/ui/ComposeCommon.kt index afa8d7b12..7114426c1 100644 --- a/core/src/main/java/org/openedx/core/ui/ComposeCommon.kt +++ b/core/src/main/java/org/openedx/core/ui/ComposeCommon.kt @@ -152,7 +152,7 @@ fun Toolbar( canShowBackBtn: Boolean = false, onBackClick: () -> Unit = {} ) { - Row( + Box( modifier = modifier .fillMaxWidth() .height(48.dp), @@ -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,