Fix redacted cards for grid mode

This commit is contained in:
Jackson Harper
2023-12-15 22:29:13 +08:00
parent a47578f138
commit eadfbc3436

View File

@ -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