fix(mac): expand config settings width
parent
ce630a6381
commit
2a172f9779
|
|
@ -47,7 +47,7 @@ struct ConfigSettings: View {
|
||||||
Text("Manual entry…").tag("__custom__")
|
Text("Manual entry…").tag("__custom__")
|
||||||
}
|
}
|
||||||
.labelsHidden()
|
.labelsHidden()
|
||||||
.frame(width: 360)
|
.frame(maxWidth: .infinity)
|
||||||
.disabled(self.modelsLoading || (!self.modelError.isNilOrEmpty && self.models.isEmpty))
|
.disabled(self.modelsLoading || (!self.modelError.isNilOrEmpty && self.models.isEmpty))
|
||||||
.onChange(of: self.configModel) { _, _ in
|
.onChange(of: self.configModel) { _, _ in
|
||||||
self.autosaveConfig()
|
self.autosaveConfig()
|
||||||
|
|
@ -56,7 +56,7 @@ struct ConfigSettings: View {
|
||||||
if self.configModel == "__custom__" {
|
if self.configModel == "__custom__" {
|
||||||
TextField("Enter model ID", text: self.$customModel)
|
TextField("Enter model ID", text: self.$customModel)
|
||||||
.textFieldStyle(.roundedBorder)
|
.textFieldStyle(.roundedBorder)
|
||||||
.frame(width: 360)
|
.frame(maxWidth: .infinity)
|
||||||
.onChange(of: self.customModel) { _, newValue in
|
.onChange(of: self.customModel) { _, newValue in
|
||||||
self.configModel = newValue
|
self.configModel = newValue
|
||||||
self.autosaveConfig()
|
self.autosaveConfig()
|
||||||
|
|
@ -77,8 +77,8 @@ struct ConfigSettings: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: 520, alignment: .leading)
|
|
||||||
}
|
}
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
GroupBox("Heartbeat") {
|
GroupBox("Heartbeat") {
|
||||||
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
||||||
|
|
@ -99,7 +99,7 @@ struct ConfigSettings: View {
|
||||||
|
|
||||||
TextField("HEARTBEAT", text: self.$heartbeatBody)
|
TextField("HEARTBEAT", text: self.$heartbeatBody)
|
||||||
.textFieldStyle(.roundedBorder)
|
.textFieldStyle(.roundedBorder)
|
||||||
.frame(width: 200)
|
.frame(maxWidth: .infinity)
|
||||||
.onChange(of: self.heartbeatBody) { _, _ in
|
.onChange(of: self.heartbeatBody) { _, _ in
|
||||||
self.autosaveConfig()
|
self.autosaveConfig()
|
||||||
}
|
}
|
||||||
|
|
@ -111,8 +111,8 @@ struct ConfigSettings: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: 520, alignment: .leading)
|
|
||||||
}
|
}
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
GroupBox("Web Chat") {
|
GroupBox("Web Chat") {
|
||||||
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
||||||
|
|
@ -139,11 +139,11 @@ struct ConfigSettings: View {
|
||||||
""")
|
""")
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.frame(maxWidth: 360, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: 520, alignment: .leading)
|
|
||||||
}
|
}
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
GroupBox("Browser (clawd)") {
|
GroupBox("Browser (clawd)") {
|
||||||
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
||||||
|
|
@ -158,7 +158,7 @@ struct ConfigSettings: View {
|
||||||
self.gridLabel("Control URL")
|
self.gridLabel("Control URL")
|
||||||
TextField("http://127.0.0.1:18791", text: self.$browserControlUrl)
|
TextField("http://127.0.0.1:18791", text: self.$browserControlUrl)
|
||||||
.textFieldStyle(.roundedBorder)
|
.textFieldStyle(.roundedBorder)
|
||||||
.frame(width: 360)
|
.frame(maxWidth: .infinity)
|
||||||
.disabled(!self.browserEnabled)
|
.disabled(!self.browserEnabled)
|
||||||
.onChange(of: self.browserControlUrl) { _, _ in self.autosaveConfig() }
|
.onChange(of: self.browserControlUrl) { _, _ in self.autosaveConfig() }
|
||||||
}
|
}
|
||||||
|
|
@ -196,11 +196,11 @@ struct ConfigSettings: View {
|
||||||
)
|
)
|
||||||
.font(.footnote)
|
.font(.footnote)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.frame(maxWidth: 360, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: 520, alignment: .leading)
|
|
||||||
}
|
}
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
Spacer(minLength: 0)
|
Spacer(minLength: 0)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue