From c5cfccc6288abed249122f9bb2483ecf3895519c Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 6 Jul 2026 21:59:59 -0700 Subject: [PATCH] Use full-bleed selection in timeline in compact mode. --- iOS/MainTimeline/Cell/MainTimelineCell.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/iOS/MainTimeline/Cell/MainTimelineCell.swift b/iOS/MainTimeline/Cell/MainTimelineCell.swift index f200f225d..294e9e851 100644 --- a/iOS/MainTimeline/Cell/MainTimelineCell.swift +++ b/iOS/MainTimeline/Cell/MainTimelineCell.swift @@ -75,7 +75,13 @@ final class MainTimelineCell: UICollectionViewCell { } else { backgroundConfig = UIBackgroundConfiguration.listGroupedCell().updated(for: state) } - if #available(iOS 26, *) { + if state.traitCollection.horizontalSizeClass == .compact { + // Full-bleed rectangle selection in compact width; iPad (regular width) keeps the + // rounded, inset selection below. + backgroundConfig.cornerRadius = 0 + backgroundConfig.backgroundInsets = .zero + backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [] + } else if #available(iOS 26, *) { backgroundConfig.cornerRadius = 20 backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing] if UIDevice.current.userInterfaceIdiom == .pad {