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:
Arkadiusz Fal
2026-04-19 11:24:32 +02:00
parent e231be9c90
commit 52a2a26f2f
4 changed files with 14 additions and 0 deletions

View File

@@ -4,6 +4,10 @@
"filename" : "TopShelf-Wide.png",
"idiom" : "tv",
"scale" : "1x"
},
{
"idiom" : "tv",
"scale" : "2x"
}
],
"info" : {

View File

@@ -4,6 +4,10 @@
"filename" : "TopShelf.png",
"idiom" : "tv",
"scale" : "1x"
},
{
"idiom" : "tv",
"scale" : "2x"
}
],
"info" : {

View File

@@ -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)

View File

@@ -101,6 +101,9 @@ private struct EditRemoteServerContent: View {
}
.accessibilityIdentifier("editSource.view")
}
#if os(macOS)
.frame(minWidth: 500, minHeight: 450)
#endif
#endif
}