enhancement: post card layout

This commit is contained in:
Diego Beraldin 2023-10-02 13:51:20 +02:00
parent 54b20e31fd
commit cd5e16a72d

View File

@ -205,7 +205,7 @@ private fun ExtendedPost(
) )
PostCardTitle( PostCardTitle(
modifier = Modifier.padding( modifier = Modifier.padding(
vertical = Spacing.s, vertical = Spacing.xs,
horizontal = Spacing.xs, horizontal = Spacing.xs,
), ),
text = post.title text = post.title
@ -226,17 +226,13 @@ private fun ExtendedPost(
it it
} }
} }
.padding( .padding(horizontal = Spacing.xs),
start = Spacing.xs,
end = Spacing.xs,
bottom = Spacing.xs,
),
text = post.text, text = post.text,
) )
if (withOverflowBlurred) { if (withOverflowBlurred) {
Box( Box(
modifier = Modifier modifier = Modifier
.height(Spacing.l) .height(Spacing.xxl)
.fillMaxWidth() .fillMaxWidth()
.align(Alignment.BottomCenter).background( .align(Alignment.BottomCenter).background(
brush = Brush.verticalGradient( brush = Brush.verticalGradient(