Skip to content

Commit

Permalink
Fix deleted item header spacing. Fixes #222 (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Oct 3, 2022
1 parent e1b03c7 commit f3b4361
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions app/src/main/java/com/jerboa/ui/components/common/AppBars.kt
Expand Up @@ -197,23 +197,29 @@ fun CommentOrPostNodeHeader(
onClick = {}
)
) {
if (deleted) {
Icon(
imageVector = Icons.Default.Delete,
contentDescription = "TODO",
tint = MaterialTheme.colors.error
Row(
horizontalArrangement = Arrangement.spacedBy(SMALL_PADDING),
verticalAlignment = Alignment.CenterVertically
) {
if (deleted) {
Icon(
imageVector = Icons.Default.Delete,
contentDescription = "TODO",
tint = MaterialTheme.colors.error
)
DotSpacer()
}

PersonProfileLink(
person = creator,
onClick = { onPersonClick(creator.id) },
showTags = true,
isPostCreator = isPostCreator,
isModerator = isModerator,
isCommunityBanned = isCommunityBanned
)
DotSpacer()
}

PersonProfileLink(
person = creator,
onClick = { onPersonClick(creator.id) },
showTags = true,
isPostCreator = isPostCreator,
isModerator = isModerator,
isCommunityBanned = isCommunityBanned
)
Row(
horizontalArrangement = Arrangement.spacedBy(SMALL_PADDING),
verticalAlignment = Alignment.CenterVertically
Expand Down

0 comments on commit f3b4361

Please sign in to comment.