From cd5e16a72d0d2b8fafada91d72ca78199b77db37 Mon Sep 17 00:00:00 2001 From: Diego Beraldin Date: Mon, 2 Oct 2023 13:51:20 +0200 Subject: [PATCH] enhancement: post card layout --- .../core/commonui/components/PostCard.kt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core-commonui/src/commonMain/kotlin/com/github/diegoberaldin/raccoonforlemmy/core/commonui/components/PostCard.kt b/core-commonui/src/commonMain/kotlin/com/github/diegoberaldin/raccoonforlemmy/core/commonui/components/PostCard.kt index 063e036b8..e0dd171e9 100644 --- a/core-commonui/src/commonMain/kotlin/com/github/diegoberaldin/raccoonforlemmy/core/commonui/components/PostCard.kt +++ b/core-commonui/src/commonMain/kotlin/com/github/diegoberaldin/raccoonforlemmy/core/commonui/components/PostCard.kt @@ -205,7 +205,7 @@ private fun ExtendedPost( ) PostCardTitle( modifier = Modifier.padding( - vertical = Spacing.s, + vertical = Spacing.xs, horizontal = Spacing.xs, ), text = post.title @@ -226,17 +226,13 @@ private fun ExtendedPost( it } } - .padding( - start = Spacing.xs, - end = Spacing.xs, - bottom = Spacing.xs, - ), + .padding(horizontal = Spacing.xs), text = post.text, ) if (withOverflowBlurred) { Box( modifier = Modifier - .height(Spacing.l) + .height(Spacing.xxl) .fillMaxWidth() .align(Alignment.BottomCenter).background( brush = Brush.verticalGradient(