From adcebb77a5dbd1a7c17bab9327a82b811a227f08 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 26 Dec 2021 21:27:46 +0100 Subject: [PATCH] Fix video details buttons alignment --- Shared/Player/VideoDetails.swift | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Shared/Player/VideoDetails.swift b/Shared/Player/VideoDetails.swift index 00385562..4f5f2be5 100644 --- a/Shared/Player/VideoDetails.swift +++ b/Shared/Player/VideoDetails.swift @@ -365,16 +365,18 @@ struct VideoDetails: View { Spacer() - if accounts.app.supportsUserPlaylists { - Button { - presentingAddToPlaylist = true - } label: { - Label("Add to Playlist", systemImage: "text.badge.plus") - .labelStyle(.iconOnly) - .help("Add to Playlist...") - } - .buttonStyle(.plain) + Button { + presentingAddToPlaylist = true + } label: { + Label("Add to Playlist", systemImage: "text.badge.plus") + .labelStyle(.iconOnly) + .help("Add to Playlist...") } + .buttonStyle(.plain) + .opacity(accounts.app.supportsUserPlaylists ? 1 : 0) + #if os(macOS) + .frame(minWidth: 35, alignment: .trailing) + #endif } .frame(maxHeight: 35) .foregroundColor(.secondary)