mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 15:48:44 +01:00
enhancement: improve compact layout; closes #56
This commit is contained in:
parent
764d6fdc45
commit
5ec2466e3b
@ -156,11 +156,19 @@ private fun CompactPost(
|
||||
autoLoadImages = autoLoadImages,
|
||||
)
|
||||
Row(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
verticalAlignment = Alignment.Top,
|
||||
horizontalArrangement = Arrangement.spacedBy(Spacing.xs)
|
||||
) {
|
||||
PostCardTitle(
|
||||
modifier = Modifier.weight(0.75f),
|
||||
text = post.title,
|
||||
autoLoadImages = autoLoadImages,
|
||||
)
|
||||
PostCardImage(
|
||||
modifier = Modifier.weight(0.2f).clip(RoundedCornerShape(CornerSize.s)),
|
||||
modifier = Modifier
|
||||
.weight(0.25f)
|
||||
.clip(RoundedCornerShape(CornerSize.s)),
|
||||
minHeight = Dp.Unspecified,
|
||||
maxHeight = Dp.Unspecified,
|
||||
imageUrl = post.imageUrl,
|
||||
@ -171,11 +179,6 @@ private fun CompactPost(
|
||||
blurred = blurNsfw && post.nsfw,
|
||||
onImageClick = onImageClick,
|
||||
)
|
||||
PostCardTitle(
|
||||
modifier = Modifier.weight(1f),
|
||||
text = post.title,
|
||||
autoLoadImages = autoLoadImages,
|
||||
)
|
||||
}
|
||||
PostCardFooter(
|
||||
comments = post.comments,
|
||||
|
Loading…
x
Reference in New Issue
Block a user