From 18bc6ce61ece1b98fb4fc0f6d7e36cd74a59bd6d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 25 Feb 2023 15:10:21 -0500 Subject: [PATCH] Don't use readable content inset for search results --- Tusker/Screens/Search/SearchResultsViewController.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tusker/Screens/Search/SearchResultsViewController.swift b/Tusker/Screens/Search/SearchResultsViewController.swift index 84e47fc7..33931cee 100644 --- a/Tusker/Screens/Search/SearchResultsViewController.swift +++ b/Tusker/Screens/Search/SearchResultsViewController.swift @@ -80,9 +80,8 @@ class SearchResultsViewController: UIViewController, CollectionViewController { break } let section = NSCollectionLayoutSection.list(using: config, layoutEnvironment: environment) - if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac { - section.contentInsetsReference = .readableContent - } + // we don't use the readable content inset here, because it insets the entire cell, rather than just the content + // so the cell backgrounds not being full width looks weird return section } view = UICollectionView(frame: .zero, collectionViewLayout: layout)