ui: make General tab scrollable
This commit is contained in:
@@ -10,7 +10,8 @@ struct GeneralSettings: View {
|
|||||||
@State private var cliInstallLocation: String?
|
@State private var cliInstallLocation: String?
|
||||||
@State private var remoteStatus: RemoteStatus = .idle
|
@State private var remoteStatus: RemoteStatus = .idle
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
ScrollView(.vertical) {
|
||||||
VStack(alignment: .leading, spacing: 18) {
|
VStack(alignment: .leading, spacing: 18) {
|
||||||
self.connectionSection
|
self.connectionSection
|
||||||
|
|
||||||
@@ -71,7 +72,7 @@ struct GeneralSettings: View {
|
|||||||
self.cliInstaller
|
self.cliInstaller
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer(minLength: 12)
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Button("Quit Clawdis") { NSApp.terminate(nil) }
|
Button("Quit Clawdis") { NSApp.terminate(nil) }
|
||||||
@@ -81,6 +82,7 @@ struct GeneralSettings: View {
|
|||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.padding(.horizontal, 22)
|
.padding(.horizontal, 22)
|
||||||
.padding(.bottom, 16)
|
.padding(.bottom, 16)
|
||||||
|
}
|
||||||
.onAppear { self.refreshCLIStatus() }
|
.onAppear { self.refreshCLIStatus() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user