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) .buttonStyle(.plain)
} }
} }
Menu() { if !hostsManager.hosts.isEmpty {
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in Menu() {
Button() { ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
hostsManager.set(keypair: keypair, onHost: host) Button() {
} label: { hostsManager.set(keypair: keypair, onHost: host)
host.symbol.image } label: {
.resizable().scaledToFit() host.symbol.image
.foregroundStyle(.blue) .resizable().scaledToFit()
.frame(width: 20, height: 20) .foregroundStyle(.blue)
Text(host.description) .frame(width: 20, height: 20)
.foregroundStyle(.blue) 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.