feat: fix detail

This commit is contained in:
2026-02-27 13:50:32 +08:00
parent bcfee96fa9
commit 2e5348cc97
6 changed files with 63 additions and 2 deletions

View File

@@ -14,9 +14,14 @@ struct CookieInputView: View {
}
Section("Cookie") {
#if os(tvOS)
TextField("粘贴 Cookie...", text: $cookieText)
.font(.system(.body, design: .monospaced))
#else
TextEditor(text: $cookieText)
.font(.system(.body, design: .monospaced))
.frame(minHeight: 120)
#endif
}
Section {

View File

@@ -93,6 +93,7 @@ struct AppNavigation: View {
}
}
#if !os(tvOS)
private var sidebarLayout: some View {
NavigationSplitView {
List(AppTab.visibleTabs, selection: $selectedTab) { tab in
@@ -106,6 +107,7 @@ struct AppNavigation: View {
}
}
}
#endif
@ViewBuilder
private func tabContent(for tab: AppTab) -> some View {