💄 Micro-tweaks to cell previews

This commit is contained in:
Stuart Breckenridge committed 2026-02-02 23:26:10 +08:00
1 parent 0cd59a99ff
commit fc48e247c9
4 files changed
+17 -13

No files matched your search

@@ -309,7 +309,11 @@ class MainTimelineCollectionViewCell: UICollectionViewCell {
if UIDevice.current.userInterfaceIdiom == .pad {
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: -8, bottom: 0, trailing: -8)
} else {
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: -12, bottom: 0, trailing: -12)
if !isPreview {
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: -12, bottom: 0, trailing: -12)
} else {
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: -16, bottom: 0, trailing: -16)
}
}
if state.isSwiped && state.isSelected {