mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 00:26:33 +00:00
Fix playlists view on iOS
This commit is contained in:
parent
8f48da93d8
commit
16fb7087e3
@ -364,6 +364,7 @@ struct PlaylistsView: View {
|
|||||||
|
|
||||||
var header: some View {
|
var header: some View {
|
||||||
HStack {
|
HStack {
|
||||||
|
#if os(tvOS)
|
||||||
if model.isEmpty {
|
if model.isEmpty {
|
||||||
Text("No Playlists")
|
Text("No Playlists")
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
@ -386,6 +387,9 @@ struct PlaylistsView: View {
|
|||||||
|
|
||||||
ListingStyleButtons(listingStyle: $playlistListingStyle)
|
ListingStyleButtons(listingStyle: $playlistListingStyle)
|
||||||
HideShortsButtons(hide: $hideShorts)
|
HideShortsButtons(hide: $hideShorts)
|
||||||
|
#else
|
||||||
|
Spacer()
|
||||||
|
#endif
|
||||||
|
|
||||||
if let account = accounts.current, showCacheStatus {
|
if let account = accounts.current, showCacheStatus {
|
||||||
CacheStatusHeader(
|
CacheStatusHeader(
|
||||||
@ -394,6 +398,7 @@ struct PlaylistsView: View {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if os(tvOS)
|
||||||
Button {
|
Button {
|
||||||
model.load(force: true)
|
model.load(force: true)
|
||||||
loadResource()
|
loadResource()
|
||||||
@ -401,12 +406,13 @@ struct PlaylistsView: View {
|
|||||||
Label("Refresh", systemImage: "arrow.clockwise")
|
Label("Refresh", systemImage: "arrow.clockwise")
|
||||||
.labelStyle(.iconOnly)
|
.labelStyle(.iconOnly)
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
.labelStyle(.iconOnly)
|
.labelStyle(.iconOnly)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.imageScale(.small)
|
.imageScale(.small)
|
||||||
.padding(.leading, 30)
|
|
||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
|
.padding(.leading, 30)
|
||||||
.padding(.bottom, 15)
|
.padding(.bottom, 15)
|
||||||
.padding(.trailing, 30)
|
.padding(.trailing, 30)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user