From e775be9324194bf95be450b22d01f1dc8f7f3e5e Mon Sep 17 00:00:00 2001 From: Sjmarf <78750526+Sjmarf@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:42:02 +0100 Subject: [PATCH] Comment background color fix (#648) --- Mlem/Views/Shared/Comments/Comment Item.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mlem/Views/Shared/Comments/Comment Item.swift b/Mlem/Views/Shared/Comments/Comment Item.swift index d77daebcc..292efbea1 100644 --- a/Mlem/Views/Shared/Comments/Comment Item.swift +++ b/Mlem/Views/Shared/Comments/Comment Item.swift @@ -187,11 +187,6 @@ struct CommentItem: View { .onTapGesture { toggleCollapsed() } - .contextMenu { - ForEach(genMenuFunctions()) { item in - MenuButton(menuFunction: item, confirmDestructive: confirmDestructive) - } - } .destructiveConfirmation( isPresentingConfirmDestructive: $isPresentingConfirmDestructive, confirmationMenuFunction: confirmationMenuFunction @@ -202,6 +197,11 @@ struct CommentItem: View { trailing: enableSwipeActions ? [saveSwipeAction, replySwipeAction, expandCollapseCommentAction] : [] ) .border(width: borderWidth, edges: [.leading], color: threadingColors[depth % threadingColors.count]) + .contextMenu { + ForEach(genMenuFunctions()) { item in + MenuButton(menuFunction: item, confirmDestructive: confirmDestructive) + } + } } // swiftlint:enable function_body_length }