diff options
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 16 | ||||
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsThumbnailsView.swift | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index be15140..cee89ad 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -50,14 +50,6 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length let columnCount = settings.thumbnailGridColumns if settings.alternativeThumbnailGrid { - WaterfallGrid(filteredPosts, id: \.id) { post in - waterfallGridContent(post: post) - .id(post.id) - } - .gridStyle(columns: columnCount) - .padding(.horizontal) - .transition(.opacity) - } else { let columnsData = (0..<columnCount).map { columnIndex in filteredPosts.enumerated().compactMap { index, post in index % columnCount == columnIndex ? post : nil @@ -76,6 +68,14 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length } .padding(.horizontal) .transition(.opacity) + } else { + WaterfallGrid(filteredPosts, id: \.id) { post in + waterfallGridContent(post: post) + .id(post.id) + } + .gridStyle(columns: columnCount) + .padding(.horizontal) + .transition(.opacity) } } } diff --git a/Sora/Views/Settings/Section/SettingsThumbnailsView.swift b/Sora/Views/Settings/Section/SettingsThumbnailsView.swift index 29fe1ff..9e4c856 100644 --- a/Sora/Views/Settings/Section/SettingsThumbnailsView.swift +++ b/Sora/Views/Settings/Section/SettingsThumbnailsView.swift @@ -23,7 +23,7 @@ struct SettingsThumbnailsView: View { ) #endif - Toggle("Eager Thumbnail Loading", isOn: $settings.alternativeThumbnailGrid) + Toggle("Lazy Thumbnail Loading", isOn: $settings.alternativeThumbnailGrid) #if os(macOS) Button("Content Filtering") { |