File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ struct AgentWorkspaceFilesScreen: View {
3737 . navigationTitle ( " Files " )
3838 . navigationBarTitleDisplayMode ( . inline)
3939 // Registered once at the section root; pushed directory levels resolve
40- // through this single destination table.
40+ // through this single destination table. Direct sidebar routes hide the
41+ // nav bar for the custom header, so pushed levels restore it explicitly
42+ // to keep Back and the share toolbar reachable.
4143 . navigationDestination ( for: Route . self) { route in
4244 switch route {
4345 case let . directory( path) :
@@ -47,8 +49,10 @@ struct AgentWorkspaceFilesScreen: View {
4749 }
4850 . navigationTitle ( Self . displayName ( forPath: path) )
4951 . navigationBarTitleDisplayMode ( . inline)
52+ . toolbar ( . visible, for: . navigationBar)
5053 case let . file( path) :
5154 AgentWorkspaceFilePreview ( agentId: self . agentId, path: path)
55+ . toolbar ( . visible, for: . navigationBar)
5256 }
5357 }
5458 }
You can’t perform that action at this time.
0 commit comments