From c0941f6db0eb8c434b755d233d14b5b82aa0733f Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 31 Oct 2026 10:58:18 -0700 Subject: [PATCH] =?UTF-8?q?Load=20saved=20thumbnail=20URLs=20in=20small=20?= =?UTF-8?q?mode=20on=20Mac=20so=20titles=20don=E2=80=99t=20rewrap=20after?= =?UTF-8?q?=20timeline=20opens.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mac/MainWindow/Timeline/TimelineViewController.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Mac/MainWindow/Timeline/TimelineViewController.swift b/Mac/MainWindow/Timeline/TimelineViewController.swift index fb9f5132d..772b12b0c 100644 --- a/Mac/MainWindow/Timeline/TimelineViewController.swift +++ b/Mac/MainWindow/Timeline/TimelineViewController.swift @@ -143,7 +143,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr return } - loadSavedThumbnailURLsForLargeRows() + loadSavedThumbnailURLs() if let representedObjects = representedObjects, representedObjects.count == 1 && representedObjects.first is Feed { showFeedNames = { @@ -1276,7 +1276,7 @@ private extension TimelineViewController { func layoutDidChange() { thumbnailFirstVisibleRow = nil - loadSavedThumbnailURLsForLargeRows() + loadSavedThumbnailURLs() performBlockAndRestoreSelection { configureTableView(for: layout) updateShowIcons() @@ -1414,7 +1414,7 @@ private extension TimelineViewController { guard layout == .standard else { return } - loadSavedThumbnailURLsForLargeRows() + loadSavedThumbnailURLs() performBlockAndRestoreSelection { tableView.reloadData() } @@ -1424,9 +1424,9 @@ private extension TimelineViewController { discoverThumbnailURLs() } - /// Large-mode row heights depend on having a thumbnail URL, so this runs before rows are laid out. - func loadSavedThumbnailURLsForLargeRows() { - guard thumbnailMode == .large else { + /// Row heights and text width depend on having a thumbnail URL, so this runs before rows are laid out. + func loadSavedThumbnailURLs() { + guard thumbnailMode != nil else { return } ArticleThumbnailFinder.shared.loadSavedThumbnailURLs(for: articles)