moved .toolbar to contentview to fix the 4x plus button

This commit is contained in:
neon443 committed 2025-07-06 19:44:25 +01:00
1 parent bc24edd13c
commit 74b81877a9
2 files changed
+13 -13

No files matched your search

+13
View File
@@ -57,6 +57,19 @@ struct ContentView: View {
} }
.scrollContentBackground(.hidden) .scrollContentBackground(.hidden)
} }
.toolbar {
ToolbarItem(placement: .confirmationAction) {
NavigationLink {
ConnectionView(
handler: SSHHandler(host: Host.blank, keyManager: keyManager),
hostsManager: hostsManager,
keyManager: keyManager
)
} label: {
Label("Add", systemImage: "plus")
}
}
}
} }
} }
} }
-13
View File
@@ -53,19 +53,6 @@ struct HostsView: View {
} }
.transition(.opacity) .transition(.opacity)
.navigationTitle("ShhShell") .navigationTitle("ShhShell")
.toolbar {
ToolbarItem(placement: .confirmationAction) {
NavigationLink {
ConnectionView(
handler: SSHHandler(host: Host.blank, keyManager: keyManager),
hostsManager: hostsManager,
keyManager: keyManager
)
} label: {
Label("Add", systemImage: "plus")
}
}
}
} }
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.