diff --git a/iOS/Base.lproj/Main.storyboard b/iOS/Base.lproj/Main.storyboard index 95c907694..8990d9964 100644 --- a/iOS/Base.lproj/Main.storyboard +++ b/iOS/Base.lproj/Main.storyboard @@ -126,7 +126,7 @@ - + diff --git a/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift b/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift index e56c75ba5..afdd3a731 100644 --- a/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift +++ b/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift @@ -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 { diff --git a/iOS/MainTimeline/MainTimelineModernViewController.swift b/iOS/MainTimeline/MainTimelineModernViewController.swift index 5cbaea8e1..33174ba6d 100644 --- a/iOS/MainTimeline/MainTimelineModernViewController.swift +++ b/iOS/MainTimeline/MainTimelineModernViewController.swift @@ -553,12 +553,12 @@ extension MainTimelineModernViewController: UICollectionViewDelegate { let previewView = cell.contentView var bounds = previewView.bounds let parameters = UIPreviewParameters() - parameters.backgroundColor = .tertiarySystemBackground + parameters.backgroundColor = cell.isSelected ? cell.backgroundConfiguration?.backgroundColor : .tertiarySystemBackground if let insets = cell.backgroundConfiguration?.backgroundInsets { bounds = bounds.inset(by: UIEdgeInsets(top: insets.top, - left: -insets.leading, + left: -insets.leading - 4, bottom: insets.bottom, - right: -insets.trailing)) + right: -insets.trailing - 4)) } parameters.visiblePath = UIBezierPath(roundedRect: bounds, cornerRadius: 20) @@ -574,12 +574,12 @@ extension MainTimelineModernViewController: UICollectionViewDelegate { let previewView = cell.contentView var bounds = previewView.bounds let parameters = UIPreviewParameters() - parameters.backgroundColor = .tertiarySystemBackground + parameters.backgroundColor = cell.isSelected ? cell.backgroundConfiguration?.backgroundColor : .tertiarySystemBackground if let insets = cell.backgroundConfiguration?.backgroundInsets { bounds = bounds.inset(by: UIEdgeInsets(top: insets.top, - left: -insets.leading, + left: -insets.leading - 4, bottom: insets.bottom, - right: -insets.trailing)) + right: -insets.trailing - 4)) } parameters.visiblePath = UIBezierPath(roundedRect: bounds, cornerRadius: 20) diff --git a/iOS/Settings/Settings.storyboard b/iOS/Settings/Settings.storyboard index ee71fff49..44981aa72 100644 --- a/iOS/Settings/Settings.storyboard +++ b/iOS/Settings/Settings.storyboard @@ -649,7 +649,7 @@ - + @@ -983,16 +983,16 @@ - + - + - + - +