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:
@@ -136,6 +136,7 @@ struct UnifiedPlaylistDetailView: View {
|
||||
systemImage: "list.bullet.rectangle",
|
||||
description: Text(String(localized: "playlist.notFound.description"))
|
||||
)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
}
|
||||
}
|
||||
.navigationTitle(title.isEmpty ? String(localized: "playlist.title") : title)
|
||||
@@ -507,6 +508,7 @@ struct UnifiedPlaylistDetailView: View {
|
||||
} description: {
|
||||
Text(String(localized: "playlist.empty.description"))
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.padding(.top, 40)
|
||||
}
|
||||
|
||||
@@ -547,6 +549,7 @@ struct UnifiedPlaylistDetailView: View {
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
}
|
||||
|
||||
// MARK: - Data Loading
|
||||
|
||||
Reference in New Issue
Block a user