mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +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:
@@ -4,6 +4,10 @@
|
|||||||
"filename" : "TopShelf-Wide.png",
|
"filename" : "TopShelf-Wide.png",
|
||||||
"idiom" : "tv",
|
"idiom" : "tv",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "tv",
|
||||||
|
"scale" : "2x"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
"filename" : "TopShelf.png",
|
"filename" : "TopShelf.png",
|
||||||
"idiom" : "tv",
|
"idiom" : "tv",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "tv",
|
||||||
|
"scale" : "2x"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"info" : {
|
"info" : {
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ struct AddSourceView: View {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if os(macOS)
|
||||||
|
.frame(minWidth: 500, minHeight: 450)
|
||||||
|
#endif
|
||||||
.sheet(isPresented: $showingNetworkDiscovery) {
|
.sheet(isPresented: $showingNetworkDiscovery) {
|
||||||
NetworkShareDiscoverySheet(filterType: selectedShareType) { share in
|
NetworkShareDiscoverySheet(filterType: selectedShareType) { share in
|
||||||
handleSelectedShare(share)
|
handleSelectedShare(share)
|
||||||
|
|||||||
@@ -101,6 +101,9 @@ private struct EditRemoteServerContent: View {
|
|||||||
}
|
}
|
||||||
.accessibilityIdentifier("editSource.view")
|
.accessibilityIdentifier("editSource.view")
|
||||||
}
|
}
|
||||||
|
#if os(macOS)
|
||||||
|
.frame(minWidth: 500, minHeight: 450)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user