Prevent absurdly large sidebar on Mac or iPad

Closes: #338
Changelog-Fixed: Fix absurdly large sidebar on Mac/iPad
This commit is contained in:
John Bethancourt
2023-01-16 17:19:15 -10:00
committed by William Casarin
parent 91159d70ca
commit fa11af4b1d

View File

@@ -16,7 +16,7 @@ struct SideMenuView: View {
@Environment(\.colorScheme) var colorScheme
var sideBarWidth = UIScreen.main.bounds.size.width * 0.65
var sideBarWidth = min(UIScreen.main.bounds.size.width * 0.65, 400.0)
func fillColor() -> Color {
colorScheme == .light ? Color("DamusWhite") : Color("DamusBlack")