mirror of
https://github.com/yattee/yattee.git
synced 2026-04-10 01:26:57 +00:00
Fix ContentUnavailableView centering on Apple TV
On tvOS, ContentUnavailableView inside a Group doesn't expand to fill available space — it sizes to content and aligns top-leading. Add .frame(maxWidth: .infinity, maxHeight: .infinity) to all instances so they center correctly in their parent containers.
This commit is contained in:
@@ -117,12 +117,14 @@ struct PeerTubeInstancesExploreView: View {
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
} else if displayedInstances.isEmpty {
|
||||
ContentUnavailableView {
|
||||
Label(String(localized: "peertube.explore.noResults"), systemImage: "magnifyingglass")
|
||||
} description: {
|
||||
Text(String(localized: "peertube.explore.noResults.description"))
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
} else {
|
||||
instancesList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user