chore: add max sidebar width

having it expandable to infinity is a bit of an issue if you somehow accidentally expand it full width of the window, though this issue does not happen when you have an Xcode version selected.
This commit is contained in:
khcrysalis 2024-11-09 23:11:40 -08:00
parent 17f3d365b8
commit d1b77b94aa

View file

@ -23,7 +23,7 @@ struct NavigationSplitViewWrapper<Sidebar, Detail>: View where Sidebar: View, De
NavigationSplitView {
if #available(macOS 14, *) {
sidebar
.navigationSplitViewColumnWidth(min: 290, ideal: 290)
.navigationSplitViewColumnWidth(min: 290, ideal: 290, max: 700)
} else {
sidebar
}