Fix video details buttons alignment

This commit is contained in:
Arkadiusz Fal 2021-12-26 21:27:46 +01:00
parent 32862ab446
commit adcebb77a5

View File

@ -365,16 +365,18 @@ struct VideoDetails: View {
Spacer() Spacer()
if accounts.app.supportsUserPlaylists { Button {
Button { presentingAddToPlaylist = true
presentingAddToPlaylist = true } label: {
} label: { Label("Add to Playlist", systemImage: "text.badge.plus")
Label("Add to Playlist", systemImage: "text.badge.plus") .labelStyle(.iconOnly)
.labelStyle(.iconOnly) .help("Add to Playlist...")
.help("Add to Playlist...")
}
.buttonStyle(.plain)
} }
.buttonStyle(.plain)
.opacity(accounts.app.supportsUserPlaylists ? 1 : 0)
#if os(macOS)
.frame(minWidth: 35, alignment: .trailing)
#endif
} }
.frame(maxHeight: 35) .frame(maxHeight: 35)
.foregroundColor(.secondary) .foregroundColor(.secondary)