From 52a2a26f2f6200bc70ef980862442c56791d30f2 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 19 Apr 2026 11:24:32 +0200 Subject: [PATCH] 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. --- .../Top Shelf Image Wide.imageset/Contents.json | 4 ++++ .../Top Shelf Image.imageset/Contents.json | 4 ++++ Yattee/Views/Settings/AddSourceView.swift | 3 +++ Yattee/Views/Settings/EditSourceView.swift | 3 +++ 4 files changed, 14 insertions(+) diff --git a/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image Wide.imageset/Contents.json b/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image Wide.imageset/Contents.json index eecc3910..7f69c734 100644 --- a/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image Wide.imageset/Contents.json +++ b/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image Wide.imageset/Contents.json @@ -4,6 +4,10 @@ "filename" : "TopShelf-Wide.png", "idiom" : "tv", "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" } ], "info" : { diff --git a/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image.imageset/Contents.json b/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image.imageset/Contents.json index 1fe65665..14d58664 100644 --- a/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image.imageset/Contents.json +++ b/Yattee/Assets.xcassets/Yattee2.brandassets/Top Shelf Image.imageset/Contents.json @@ -4,6 +4,10 @@ "filename" : "TopShelf.png", "idiom" : "tv", "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" } ], "info" : { diff --git a/Yattee/Views/Settings/AddSourceView.swift b/Yattee/Views/Settings/AddSourceView.swift index b2ca0a1d..221ef84b 100644 --- a/Yattee/Views/Settings/AddSourceView.swift +++ b/Yattee/Views/Settings/AddSourceView.swift @@ -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) diff --git a/Yattee/Views/Settings/EditSourceView.swift b/Yattee/Views/Settings/EditSourceView.swift index 11218a17..e2d20c7c 100644 --- a/Yattee/Views/Settings/EditSourceView.swift +++ b/Yattee/Views/Settings/EditSourceView.swift @@ -101,6 +101,9 @@ private struct EditRemoteServerContent: View { } .accessibilityIdentifier("editSource.view") } + #if os(macOS) + .frame(minWidth: 500, minHeight: 450) + #endif #endif }