diff --git a/Yattee/Views/Video/PlaylistSelectorSheet.swift b/Yattee/Views/Video/PlaylistSelectorSheet.swift index a7a2237e..6b45984e 100644 --- a/Yattee/Views/Video/PlaylistSelectorSheet.swift +++ b/Yattee/Views/Video/PlaylistSelectorSheet.swift @@ -89,6 +89,13 @@ struct PlaylistSelectorSheet: View { .navigationBarTitleDisplayMode(.inline) #endif .toolbar { + #if os(macOS) + ToolbarItem(placement: .cancellationAction) { + Button(String(localized: "common.close"), role: .cancel) { + dismiss() + } + } + #else ToolbarItem(placement: .confirmationAction) { Button(role: .cancel) { dismiss() @@ -97,6 +104,7 @@ struct PlaylistSelectorSheet: View { .labelStyle(.iconOnly) } } + #endif } #endif .sheet(isPresented: $showingNewPlaylist) { @@ -114,7 +122,12 @@ struct PlaylistSelectorSheet: View { loadPlaylists() } } + #if os(iOS) .presentationDetents([.medium, .large]) + #endif + #if os(macOS) + .frame(minWidth: 450, minHeight: 500) + #endif } private func loadPlaylists() {