diff options
| author | Fuwn <[email protected]> | 2025-06-16 03:34:31 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-16 03:34:31 -0700 |
| commit | 4b6697246ea90a613192c9660cf478c4eb5c2fcd (patch) | |
| tree | 565429ceb002c8758408ff246f3a2a728d7814e2 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-4b6697246ea90a613192c9660cf478c4eb5c2fcd.tar.xz sora-testing-4b6697246ea90a613192c9660cf478c4eb5c2fcd.zip | |
feat: Development commit
| -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") { |