tiny change

This commit is contained in:
neon443 committed 2026-05-03 09:53:19 +01:00
1 parent 19c1cd4688
commit ccb12351b3
2 files changed
+19 -17

No files matched your search

+18 -16
View File
@@ -46,24 +46,26 @@ struct KeyDetailView: View {
.buttonStyle(.plain)
}
}
Menu() {
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
Button() {
hostsManager.set(keypair: keypair, onHost: host)
} label: {
host.symbol.image
.resizable().scaledToFit()
.foregroundStyle(.blue)
.frame(width: 20, height: 20)
Text(host.description)
.foregroundStyle(.blue)
if !hostsManager.hosts.isEmpty {
Menu() {
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
Button() {
hostsManager.set(keypair: keypair, onHost: host)
} label: {
host.symbol.image
.resizable().scaledToFit()
.foregroundStyle(.blue)
.frame(width: 20, height: 20)
Text(host.description)
.foregroundStyle(.blue)
}
}
} label: {
Image(systemName: "plus.circle.fill")
.symbolRenderingMode(.multicolor)
Text("Add")
.foregroundStyle(.green)
}
} label: {
Image(systemName: "plus.circle.fill")
.symbolRenderingMode(.multicolor)
Text("Add")
.foregroundStyle(.green)
}
}
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.