fix: avoid settings toolbar overflow
This commit is contained in:
@@ -7,6 +7,7 @@ extension ConnectionsSettings {
|
|||||||
} detail: {
|
} detail: {
|
||||||
self.detail
|
self.detail
|
||||||
}
|
}
|
||||||
|
.navigationSplitViewStyle(.balanced)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
self.store.start()
|
self.store.start()
|
||||||
self.ensureSelection()
|
self.ensureSelection()
|
||||||
@@ -38,7 +39,7 @@ extension ConnectionsSettings {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listStyle(.sidebar)
|
.listStyle(.sidebar)
|
||||||
.frame(minWidth: 210, idealWidth: 230, maxWidth: 260)
|
.frame(minWidth: 220, idealWidth: 240, maxWidth: 280)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var detail: some View {
|
private var detail: some View {
|
||||||
@@ -49,7 +50,7 @@ extension ConnectionsSettings {
|
|||||||
self.emptyDetail
|
self.emptyDetail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
.frame(minWidth: 460, maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var emptyDetail: some View {
|
private var emptyDetail: some View {
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ struct SettingsRootView: View {
|
|||||||
.tabItem { Label("About", systemImage: "info.circle") }
|
.tabItem { Label("About", systemImage: "info.circle") }
|
||||||
.tag(SettingsTab.about)
|
.tag(SettingsTab.about)
|
||||||
}
|
}
|
||||||
|
.tabViewStyle(.sidebar)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 28)
|
.padding(.horizontal, 28)
|
||||||
.padding(.vertical, 22)
|
.padding(.vertical, 22)
|
||||||
|
|||||||
Reference in New Issue
Block a user