Playlists fixes

This commit is contained in:
Arkadiusz Fal 2022-12-11 16:18:12 +01:00
parent 385dbbbef2
commit 006423682b

View File

@ -173,7 +173,10 @@ struct PlaylistsView: View {
.labelStyle(.iconOnly) .labelStyle(.iconOnly)
} }
} }
newPlaylistButton
if accounts.signedIn {
newPlaylistButton
}
} label: { } label: {
HStack(spacing: 12) { HStack(spacing: 12) {
Text(currentPlaylist?.title ?? "Playlists") Text(currentPlaylist?.title ?? "Playlists")
@ -184,8 +187,11 @@ struct PlaylistsView: View {
.foregroundColor(.accentColor) .foregroundColor(.accentColor)
.imageScale(.small) .imageScale(.small)
} }
.lineLimit(1)
.frame(maxWidth: 300)
.transaction { t in t.animation = nil } .transaction { t in t.animation = nil }
} }
.disabled(!accounts.signedIn)
} }
#endif #endif