mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 02:45:03 +00:00
Polish AddSourceView layout on tvOS
Add a TVSourceRowLabelStyle for consistent icon/text spacing, switch the Scan Network button to TVFormRowButtonStyle so it matches the NavigationLink rows, and drop the duplicate navigationTitle in AddWebDAV/AddSMB views since the title is already shown in the TVSidebarDetailContainer sidebar.
This commit is contained in:
@@ -54,10 +54,12 @@ struct AddSMBView: View {
|
||||
#if os(iOS)
|
||||
.scrollDismissesKeyboard(.interactively)
|
||||
#endif
|
||||
#if !os(tvOS)
|
||||
.navigationTitle(String(localized: "sources.addSMB"))
|
||||
#if os(iOS)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
#endif
|
||||
#endif
|
||||
.onAppear {
|
||||
if let prefillServer {
|
||||
server = prefillServer
|
||||
|
||||
@@ -55,10 +55,12 @@ struct AddWebDAVView: View {
|
||||
#if os(iOS)
|
||||
.scrollDismissesKeyboard(.interactively)
|
||||
#endif
|
||||
#if !os(tvOS)
|
||||
.navigationTitle(String(localized: "sources.addWebDAV"))
|
||||
#if os(iOS)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
#endif
|
||||
#endif
|
||||
.onAppear {
|
||||
if let url = prefillURL {
|
||||
urlString = url.absoluteString
|
||||
|
||||
Reference in New Issue
Block a user