1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 05:40:32 +05:30

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