Fix collapsed sheets on macOS across the app

Add macOS-only minimum frame sizing to sheets that wrap a
NavigationStack/Form without intrinsic size, so they render properly
instead of collapsing to just the toolbar. Affects Customize Home,
subscription/channel view options, playlist create/edit, search
filters, media browser options, instance picker, log filters, preset
editor, and legacy data import result.
This commit is contained in:
Arkadiusz Fal
2026-04-19 11:33:16 +02:00
parent 80942dba69
commit 181cf2f73a
11 changed files with 33 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ struct InstancePickerSheet: View {
}
}
.presentationDetents([.medium, .large])
#if os(macOS)
.frame(minWidth: 450, minHeight: 500)
#endif
}
}

View File

@@ -219,6 +219,9 @@ struct LegacyDataImportView: View {
.padding()
.interactiveDismissDisabled()
}
#if os(macOS)
.frame(minWidth: 500, minHeight: 450)
#endif
}
// MARK: - Actions

View File

@@ -308,6 +308,9 @@ private struct LogFiltersSheet: View {
}
}
.presentationDetents([.medium])
#if os(macOS)
.frame(minWidth: 500, minHeight: 500)
#endif
}
private func binding(for category: LogCategory) -> Binding<Bool> {

View File

@@ -145,6 +145,9 @@ struct PresetEditorView: View {
#if os(iOS)
.presentationDetents([.medium])
#endif
#if os(macOS)
.frame(minWidth: 500, minHeight: 350)
#endif
}
private func saveIfValid() {