Skip to content

Commit c54ab7a

Browse files
committed
refactor: Set advanced option drawer default to hide
1 parent b2cc841 commit c54ab7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

macLlama/Views/ConversationView/ConversationChatView.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct ConversationChatView: View {
3838
@State private var conversationId: UUID = UUID()
3939
@State private var hoveredTopButtonTag: Int? = nil
4040
@State private var showThink: Bool = false
41-
@State private var advancedOptionDrawerIsPresent: Bool = false
41+
@State private var advancedOptionDrawerIsPresent: NavigationSplitViewVisibility = .all
4242

4343
//Local prefix & suffix of prompt
4444
@State private var localPrefix: String = ""
@@ -49,7 +49,7 @@ struct ConversationChatView: View {
4949
let ollamaProfilePicture: NSImage? = NSImage(named: "llama_gray")
5050

5151
var body: some View {
52-
NavigationSplitView {
52+
NavigationSplitView(columnVisibility: $advancedOptionDrawerIsPresent) {
5353
ChatSidebarView(showThink: $showThink, localPrefix: $localPrefix, localSuffix: $localSuffix, predict: $predict, temperature: $temperature)
5454
.navigationSplitViewColumnWidth(min: 200, ideal: 280, max: 400)
5555
} detail: {
@@ -253,6 +253,9 @@ struct ConversationChatView: View {
253253
}
254254
}
255255
.navigationSplitViewStyle(.balanced)
256+
.onAppear {
257+
self.advancedOptionDrawerIsPresent = .detailOnly
258+
}
256259
}
257260
}
258261

0 commit comments

Comments
 (0)