Skip to content

Commit b67be93

Browse files
committed
UI Dropdown Button layout improvement
1 parent 7c2f2f6 commit b67be93

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

Sources/hostmgr-helper/VM List/States/RunningVMListItem.swift

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,31 @@ struct RunningVMListItem: View {
4646
VMListItemDataItem(key: "IP Address", value: ipAddress.debugDescription)
4747

4848
HStack(alignment: .top) {
49-
Button(action: self.openVNCSession, label: {
49+
Button(action: self.openVNCSession) {
50+
Spacer()
5051
Label("VNC", systemImage: "play.display")
51-
})
52+
Spacer()
53+
}
5254

53-
Button(action: self.openVMWindow, label: {
55+
Button(action: self.openVMWindow) {
56+
Spacer()
5457
Label("View", systemImage: "display")
55-
})
58+
Spacer()
59+
}
60+
}.frame(maxWidth: .infinity)
5661

57-
Button(action: self.openSSHSession, label: {
62+
HStack(alignment: .top) {
63+
Button(action: self.openSSHSession) {
64+
Spacer()
5865
Label("SSH", systemImage: "terminal").foregroundStyle(.white)
59-
})
66+
Spacer()
67+
}
6068

61-
Button(action: self.shutdown, label: {
69+
Button(action: self.shutdown) {
70+
Spacer()
6271
Label("Stop", systemImage: "stop.circle").foregroundStyle(.white)
63-
})
72+
Spacer()
73+
}
6474
}.frame(maxWidth: .infinity)
6575
}
6676

0 commit comments

Comments
 (0)