Remove workspace header add button

This commit is contained in:
Kaede Akino committed 2026-08-28 17:43:34 +08:00
1 parent a3745f4812
commit da849b2e1f
1 file changed
+1 -12
@@ -151,18 +151,7 @@ struct WorkspaceNavigatorView: View {
.listRowInsets(EdgeInsets())
.listRowBackground(Color.clear)
} header: {
sectionHeader("Workspace") {
Button {
workspaceExpanded = true
app.connect(in: window)
} label: {
Image(systemName: "plus")
}
.buttonStyle(.borderless)
.controlSize(.small)
.help(Text("New Workspace"))
.accessibilityLabel(Text("New Workspace"))
}
sectionHeader("Workspace")
.onGeometryChange(for: CGRect.self) {
$0.frame(in: .named(Self.coordinateSpace))
} action: { workspaceHeaderFrame = $0 }