mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 11:25:02 +00:00
Fix collapsed AddSource/EditSource sheets on macOS
Add macOS-only minimum frame to NavigationStack so the sheet has intrinsic size. Matches the pattern already used in PeerTubeInstancesExploreView.
This commit is contained in:
@@ -88,6 +88,9 @@ struct AddSourceView: View {
|
||||
)
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 500, minHeight: 450)
|
||||
#endif
|
||||
.sheet(isPresented: $showingNetworkDiscovery) {
|
||||
NetworkShareDiscoverySheet(filterType: selectedShareType) { share in
|
||||
handleSelectedShare(share)
|
||||
|
||||
@@ -101,6 +101,9 @@ private struct EditRemoteServerContent: View {
|
||||
}
|
||||
.accessibilityIdentifier("editSource.view")
|
||||
}
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 500, minHeight: 450)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user