mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 22:32:01 +00:00
Add explicit sizing to sheets on macOS
Give player, download, source, and login sheets minimum frame dimensions on macOS so they open at a usable size instead of collapsing.
This commit is contained in:
@@ -531,6 +531,9 @@ private struct EditFileSourceContent: View {
|
||||
smbProtocolVersion = source.smbProtocolVersion ?? .auto
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 500, minHeight: 450)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,9 @@ struct InstanceLoginView: View {
|
||||
}
|
||||
.accessibilityIdentifier("instance.login.view")
|
||||
}
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 450, minHeight: 350)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,9 @@ struct NetworkShareDiscoverySheet: View {
|
||||
discoveryService?.stopDiscovery()
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 450, minHeight: 400)
|
||||
#endif
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
|
||||
Reference in New Issue
Block a user