Skip to content

Commit de025a6

Browse files
author
lucasliu
committed
before optimize FTTT
1 parent eb414e2 commit de025a6

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

Sources/NovaMLXMenuBar/NovaAppView.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public struct NovaAppView: View {
3131

3232
@EnvironmentObject var l10n: L10n
3333
@State private var selectedPage: AppPage
34-
@State private var columnVisibility: NavigationSplitViewVisibility = .doubleColumn
3534

3635
public init(appState: MenuBarAppState, inferenceService: InferenceService, modelManager: ModelManager) {
3736
self.appState = appState
@@ -41,14 +40,12 @@ public struct NovaAppView: View {
4140
}
4241

4342
public var body: some View {
44-
NavigationSplitView(columnVisibility: $columnVisibility) {
43+
HSplitView {
4544
sidebar
46-
} detail: {
45+
.frame(width: 200)
4746
detailView
48-
.frame(maxWidth: .infinity, maxHeight: .infinity)
49-
.clipped()
47+
.frame(minWidth: 700, minHeight: 600)
5048
}
51-
.navigationSplitViewStyle(.balanced)
5249
.frame(minWidth: 900, minHeight: 600)
5350
.onChange(of: appState.requestedPage) { _, newValue in
5451
if let page = newValue {
@@ -82,7 +79,6 @@ public struct NovaAppView: View {
8279
.padding(.bottom, 12)
8380
}
8481
.background(Color(nsColor: .controlBackgroundColor))
85-
.navigationSplitViewColumnWidth(200)
8682
}
8783

8884
private func sidebarItem(_ page: AppPage) -> some View {

0 commit comments

Comments
 (0)