From e3d237227f71e94f7a6abe79bbf3a0d5fb5a34bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manu=20Mu=C3=B1oz?= Date: Tue, 23 Jan 2024 12:26:26 +0100 Subject: [PATCH] fix: [ANDROAPP-5523] infobar height and padding (#176) --- .../dhis/mobile/ui/designsystem/component/InfoBar.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InfoBar.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InfoBar.kt index 3c57bdd16..b9a9d60ba 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InfoBar.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InfoBar.kt @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.RoundedCornerShape @@ -39,12 +38,13 @@ fun InfoBar( modifier = modifier .clip(shape = RoundedCornerShape(Radius.Full)) .background(color = infoBarData.backgroundColor) - .padding(start = Spacing.Spacing8) - .fillMaxWidth() - .height(Spacing.Spacing40), + .padding(Spacing.Spacing8) + .fillMaxWidth(), verticalAlignment = Alignment.CenterVertically, ) { - infoBarData.icon?.invoke() + Column(Modifier.align(Alignment.Top)) { + infoBarData.icon?.invoke() + } Spacer(Modifier.size(Spacing.Spacing8)) Text(color = infoBarData.color, text = infoBarData.text, style = MaterialTheme.typography.bodyMedium) Spacer(Modifier.weight(1f))