Skip to content

Commit

Permalink
fix: [ANDROAPP-5523] infobar height and padding (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored Jan 23, 2024
1 parent 4cc97ab commit e3d2372
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit e3d2372

Please sign in to comment.