Skip to content

Commit

Permalink
Fix Saved comments header does nothing (#1473)
Browse files Browse the repository at this point in the history
Co-authored-by: Dessalines <[email protected]>
  • Loading branch information
MV-GH and dessalines authored Apr 9, 2024
1 parent 1f22f11 commit f5436d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,14 @@ fun PostAndCommunityContextHeader(
showAvatar: Boolean,
) {
Column(
modifier = Modifier.padding(top = LARGE_PADDING),
modifier = Modifier
.fillMaxWidth()
.clickable { onPostClick(post.id) }
.padding(top = LARGE_PADDING),
) {
Text(
text = post.name,
style = MaterialTheme.typography.titleSmall,
modifier = Modifier.clickable { onPostClick(post.id) },
)
Row(
verticalAlignment = Alignment.CenterVertically,
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/com/jerboa/ui/components/common/AppBars.kt
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,15 @@ fun CommentOrPostNodeHeader(
modifier =
Modifier
.fillMaxWidth()
.padding(
top = LARGE_PADDING,
bottom = MEDIUM_PADDING,
)
.combinedClickable(
interactionSource = remember { MutableInteractionSource() },
indication = null,
onLongClick = onLongCLick,
onClick = onClick,
)
.padding(
top = LARGE_PADDING,
bottom = MEDIUM_PADDING,
),
) {
Row(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fun CommunityLink(
horizontalArrangement = Arrangement.spacedBy(spacing),
modifier =
if (clickable) {
modifier.clickable { onClick(community) }
Modifier.clickable { onClick(community) }.then(modifier)
} else {
modifier
},
Expand Down

0 comments on commit f5436d7

Please sign in to comment.