mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-10-30 14:13:50 +00:00
fix(ui): align add menu with sidebar toggle
This commit is contained in:
@@ -47,19 +47,21 @@ struct MainWindowView: View {
|
||||
NavigationSplitView {
|
||||
sidebar
|
||||
.navigationSplitViewColumnWidth(min: 200, ideal: 236, max: 300)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigation) {
|
||||
addMenu
|
||||
}
|
||||
}
|
||||
.toolbar(removing: .sidebarToggle)
|
||||
} detail: {
|
||||
destinationView
|
||||
}
|
||||
.frame(minWidth: 920, minHeight: 580)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigation) {
|
||||
addMenu
|
||||
}
|
||||
ToolbarItemGroup(placement: .primaryAction) {
|
||||
destinationActions
|
||||
}
|
||||
}
|
||||
.toolbar(removing: .sidebarToggle)
|
||||
.sheet(item: $presentedWorkspaceSheet) { sheet in
|
||||
switch sheet {
|
||||
case .importURL:
|
||||
|
||||
Reference in New Issue
Block a user