From eadfbc3436fdbbd828c4b7a5a7916821b0d613ca Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 15 Dec 2023 22:29:13 +0800 Subject: [PATCH] Fix redacted cards for grid mode --- .../Sources/App/Views/Home/HomeFeedViewIOS.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index 5acb17d8e..7a48e13eb 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -933,6 +933,16 @@ struct AnimatingCellHeight: AnimatableModifier { GridCard(item: item, isContextMenuOpen: $isContextMenuOpen, actionHandler: { _ in }) + .aspectRatio(1.0, contentMode: .fill) + .background( + Color.secondarySystemGroupedBackground + .onTapGesture { + if isContextMenuOpen { + isContextMenuOpen = false + } + } + ) + .cornerRadius(6) }.redacted(reason: .placeholder) } else { ForEach(viewModel.fetcher.items) { item in