mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 03:37:41 +00:00
Use full-bleed selection in timeline in compact mode.
This commit is contained in:
1 parent
e3dfca91bf
commit
c5cfccc628
1 file changed
+7
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user