Skip to content

Commit e91ce75

Browse files
committed
layout
1 parent 5e9a8bb commit e91ce75

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Flitro/Editor/AddAppItem.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ struct AddAppDialogContent: View {
4343

4444
var body: some View {
4545
VStack(alignment: .leading, spacing: 0) {
46-
Picker("Method", selection: $viewModel.selectedTab) {
46+
Picker(selection: $viewModel.selectedTab) {
4747
Text("Browse").tag(AddAppDialogViewModel.Tab.browse)
4848
Text("Running Apps").tag(AddAppDialogViewModel.Tab.running)
4949
Text("Manual").tag(AddAppDialogViewModel.Tab.manual)
50+
} label: {
51+
EmptyView()
5052
}
5153
.pickerStyle(.segmented)
5254
.padding(.bottom, 16)

Flitro/Editor/AddBrowserTab.swift

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,12 @@ struct AddBrowserTabDialogContent: View {
3636
.foregroundColor(.secondary)
3737
}
3838

39-
VStack(alignment: .leading, spacing: 4) {
40-
Text("Browser")
41-
.font(.caption)
42-
.foregroundColor(.secondary)
43-
44-
Picker("Browser", selection: $viewModel.selectedBrowser) {
45-
ForEach(viewModel.availableBrowsers, id: \.self) { browser in
46-
Text(browser).tag(browser)
47-
}
39+
Picker("Browser", selection: $viewModel.selectedBrowser) {
40+
ForEach(viewModel.availableBrowsers, id: \.self) { browser in
41+
Text(browser).tag(browser)
4842
}
49-
.pickerStyle(MenuPickerStyle())
5043
}
44+
.pickerStyle(MenuPickerStyle())
5145
}
5246
}
5347
}

Flitro/Editor/AddDocumentItem.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ struct AddDocumentDialogContent: View {
2424

2525
var body: some View {
2626
VStack(alignment: .leading, spacing: 0) {
27-
Picker("Method", selection: $viewModel.selectedTab) {
27+
Picker(selection: $viewModel.selectedTab) {
2828
Text("Browse").tag(AddDocumentDialogViewModel.Tab.browse)
2929
Text("Opened Documents").tag(AddDocumentDialogViewModel.Tab.opened)
30+
} label: {
31+
EmptyView()
3032
}
3133
.pickerStyle(.segmented)
3234
.padding(.bottom, 16)

0 commit comments

Comments
 (0)