Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c8f8c9b authored by Helen Qin's avatar Helen Qin
Browse files

Require a min height for the action chip text fields

This ensure the entry content (text & icons) are always aligned.

Bug: 328499671
Test: see screenshots in bug
Change-Id: Ic78fec3074d0b416f30eac8981138d93baa4e7bd
parent 6aa9421a
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -259,10 +259,14 @@ fun ActionEntry(
        onClick = onClick,
        shape = Shapes.large,
        label = {
            Column(modifier = Modifier.wrapContentSize()
                .padding(start = 16.dp, top = 16.dp, bottom = 16.dp)) {
            Column(
                    modifier = Modifier.heightIn(min = 56.dp).wrapContentSize().padding(
                            start = 16.dp, top = 16.dp, bottom = 16.dp
                    ),
                    verticalArrangement = Arrangement.Center,
            ) {
                SmallTitleText(entryHeadlineText)
                if (entrySecondLineText != null && entrySecondLineText.isNotEmpty()) {
                if (!entrySecondLineText.isNullOrBlank()) {
                    BodySmallText(entrySecondLineText)
                }
            }