style(ui): refine picker presentation

This commit is contained in:
Qiu Yuzhou
2026-10-24 21:35:00 +08:00
parent 57df01e5ed
commit 5fe611fefb
2 changed files with 3 additions and 3 deletions
@@ -27,7 +27,6 @@ struct ModeCard: View {
Text(action.label).tag(action)
}
}
.pickerStyle(.segmented)
.labelsHidden()
.frame(maxWidth: .infinity, alignment: .leading)
}
@@ -4,14 +4,15 @@ struct RulesPresetView: View {
@ObservedObject var workspaces: RulesWorkspaces
var body: some View {
VStack(spacing: 0) {
VStack(alignment: .leading, spacing: 0) {
Picker("规则预设", selection: $workspaces.selectedPreset) {
ForEach(RulePreset.allCases, id: \.self) { preset in
Text(preset.label).tag(preset)
}
}
.pickerStyle(.segmented)
.padding()
.padding(.top)
.padding(.horizontal)
RulesView(workflow: workspaces.current).id(workspaces.selectedPreset)
}
}