mirror of
https://github.com/yattee/yattee.git
synced 2026-04-10 09:36:58 +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:
@@ -182,6 +182,7 @@ struct ManageChannelNotificationsView: View {
|
||||
} description: {
|
||||
Text(errorMessage)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
} else if subscriptions.isEmpty {
|
||||
ContentUnavailableView {
|
||||
Label(
|
||||
@@ -191,6 +192,7 @@ struct ManageChannelNotificationsView: View {
|
||||
} description: {
|
||||
Text(String(localized: "settings.notifications.noSubscriptions.description"))
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
} else {
|
||||
ForEach(subscriptions, id: \.channelID) { subscription in
|
||||
ChannelNotificationToggle(subscription: subscription)
|
||||
|
||||
Reference in New Issue
Block a user