diff --git a/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Mention View.swift b/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Mention View.swift index d813519b6..d580f171d 100644 --- a/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Mention View.swift +++ b/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Mention View.swift @@ -17,19 +17,25 @@ struct InboxMentionView: View { var iconName: String { mention.personMention.read ? "quote.bubble" : "quote.bubble.fill" } var body: some View { - content - .padding(AppConstants.postAndCommentSpacing) - .background(Color(uiColor: .systemBackground)) - .contentShape(Rectangle()) - .addSwipeyActions(mention.swipeActions(unreadTracker: unreadTracker, editorTracker: editorTracker)) - .contextMenu { - ForEach(mention.menuFunctions( - unreadTracker: unreadTracker, - editorTracker: editorTracker - )) { item in - MenuButton(menuFunction: item, confirmDestructive: nil) + NavigationLink(.lazyLoadPostLinkWithContext(.init( + post: mention.post, + scrollTarget: mention.comment.id + ))) { + content + .padding(AppConstants.postAndCommentSpacing) + .background(Color(uiColor: .systemBackground)) + .contentShape(Rectangle()) + .addSwipeyActions(mention.swipeActions(unreadTracker: unreadTracker, editorTracker: editorTracker)) + .contextMenu { + ForEach(mention.menuFunctions( + unreadTracker: unreadTracker, + editorTracker: editorTracker + )) { item in + MenuButton(menuFunction: item, confirmDestructive: nil) + } } - } + } + .buttonStyle(EmptyButtonStyle()) } var content: some View { diff --git a/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Reply View.swift b/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Reply View.swift index 482346401..81adab969 100644 --- a/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Reply View.swift +++ b/Mlem/Views/Tabs/Inbox/Feed/Item Types/Inbox Reply View.swift @@ -19,19 +19,25 @@ struct InboxReplyView: View { var iconName: String { reply.commentReply.read ? "arrowshape.turn.up.right" : "arrowshape.turn.up.right.fill" } var body: some View { - content - .padding(AppConstants.postAndCommentSpacing) - .background(Color(uiColor: .systemBackground)) - .contentShape(Rectangle()) - .addSwipeyActions(reply.swipeActions(unreadTracker: unreadTracker, editorTracker: editorTracker)) - .contextMenu { - ForEach(reply.menuFunctions( - unreadTracker: unreadTracker, - editorTracker: editorTracker - )) { item in - MenuButton(menuFunction: item, confirmDestructive: nil) + NavigationLink(.lazyLoadPostLinkWithContext(.init( + post: reply.post, + scrollTarget: reply.comment.id + ))) { + content + .padding(AppConstants.postAndCommentSpacing) + .background(Color(uiColor: .systemBackground)) + .contentShape(Rectangle()) + .addSwipeyActions(reply.swipeActions(unreadTracker: unreadTracker, editorTracker: editorTracker)) + .contextMenu { + ForEach(reply.menuFunctions( + unreadTracker: unreadTracker, + editorTracker: editorTracker + )) { item in + MenuButton(menuFunction: item, confirmDestructive: nil) + } } - } + } + .buttonStyle(EmptyButtonStyle()) } var content: some View { diff --git a/Mlem/Views/Tabs/Inbox/Inbox View.swift b/Mlem/Views/Tabs/Inbox/Inbox View.swift index 64a67c313..a213afb8e 100644 --- a/Mlem/Views/Tabs/Inbox/Inbox View.swift +++ b/Mlem/Views/Tabs/Inbox/Inbox View.swift @@ -145,7 +145,7 @@ struct InboxView: View { .padding(.horizontal, AppConstants.postAndCommentSpacing) .padding(.top, AppConstants.postAndCommentSpacing) - ScrollView(showsIndicators: true) { + ScrollView(showsIndicators: false) { if errorOccurred { errorView() } else {