mirror of
https://github.com/yattee/yattee.git
synced 2026-06-06 23:04:19 +00:00
Make tvOS detail dismiss button opt-in and unstick more views
TVSidebarDetailContainer now exposes a showsDismissButton flag instead of always attaching a Done toolbar item. The button is only enabled where a view can end up with no focusable element on its own — Device Capabilities (informational rows) and the Import Playlists/Subscriptions flows. Wrap Contributors, Translators, Acknowledgements, and Device Capabilities destinations in TVSidebarDetailContainer for the consistent sidebar look, and make the Translators/Acknowledgements rows focusable on tvOS by wrapping them in Buttons so the Menu remote button can pop the stack.
This commit is contained in:
@@ -242,7 +242,8 @@ private struct EditRemoteServerContent: View {
|
||||
#if os(tvOS)
|
||||
TVSidebarDetailContainer(
|
||||
systemImage: "person.2",
|
||||
title: String(localized: "sources.import.subscriptions")
|
||||
title: String(localized: "sources.import.subscriptions"),
|
||||
showsDismissButton: true
|
||||
) {
|
||||
ImportSubscriptionsView(instance: instance)
|
||||
}
|
||||
@@ -258,7 +259,8 @@ private struct EditRemoteServerContent: View {
|
||||
#if os(tvOS)
|
||||
TVSidebarDetailContainer(
|
||||
systemImage: "list.bullet.rectangle",
|
||||
title: String(localized: "sources.import.playlists")
|
||||
title: String(localized: "sources.import.playlists"),
|
||||
showsDismissButton: true
|
||||
) {
|
||||
ImportPlaylistsView(instance: instance)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user