mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Fix playlists view on iOS
This commit is contained in:
parent
8f48da93d8
commit
16fb7087e3
@ -364,28 +364,32 @@ struct PlaylistsView: View {
|
||||
|
||||
var header: some View {
|
||||
HStack {
|
||||
if model.isEmpty {
|
||||
Text("No Playlists")
|
||||
.foregroundColor(.secondary)
|
||||
} else {
|
||||
selectPlaylistButton
|
||||
}
|
||||
#if os(tvOS)
|
||||
if model.isEmpty {
|
||||
Text("No Playlists")
|
||||
.foregroundColor(.secondary)
|
||||
} else {
|
||||
selectPlaylistButton
|
||||
}
|
||||
|
||||
if let playlist = currentPlaylist {
|
||||
editPlaylistButton
|
||||
if let playlist = currentPlaylist {
|
||||
editPlaylistButton
|
||||
|
||||
FavoriteButton(item: FavoriteItem(section: .playlist(accounts.current.id, playlist.id)))
|
||||
.labelStyle(.iconOnly)
|
||||
FavoriteButton(item: FavoriteItem(section: .playlist(accounts.current.id, playlist.id)))
|
||||
.labelStyle(.iconOnly)
|
||||
|
||||
playButtons
|
||||
}
|
||||
playButtons
|
||||
}
|
||||
|
||||
newPlaylistButton
|
||||
newPlaylistButton
|
||||
|
||||
Spacer()
|
||||
Spacer()
|
||||
|
||||
ListingStyleButtons(listingStyle: $playlistListingStyle)
|
||||
HideShortsButtons(hide: $hideShorts)
|
||||
ListingStyleButtons(listingStyle: $playlistListingStyle)
|
||||
HideShortsButtons(hide: $hideShorts)
|
||||
#else
|
||||
Spacer()
|
||||
#endif
|
||||
|
||||
if let account = accounts.current, showCacheStatus {
|
||||
CacheStatusHeader(
|
||||
@ -394,19 +398,21 @@ struct PlaylistsView: View {
|
||||
)
|
||||
}
|
||||
|
||||
Button {
|
||||
model.load(force: true)
|
||||
loadResource()
|
||||
} label: {
|
||||
Label("Refresh", systemImage: "arrow.clockwise")
|
||||
.labelStyle(.iconOnly)
|
||||
}
|
||||
#if os(tvOS)
|
||||
Button {
|
||||
model.load(force: true)
|
||||
loadResource()
|
||||
} label: {
|
||||
Label("Refresh", systemImage: "arrow.clockwise")
|
||||
.labelStyle(.iconOnly)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
.labelStyle(.iconOnly)
|
||||
.font(.caption)
|
||||
.imageScale(.small)
|
||||
.padding(.leading, 30)
|
||||
#if os(tvOS)
|
||||
.padding(.leading, 30)
|
||||
.padding(.bottom, 15)
|
||||
.padding(.trailing, 30)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user