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

Minor improvements

This commit is contained in:
Arkadiusz Fal 2022-05-29 15:35:16 +02:00
parent cbb989e2e1
commit 87a6a3d275
2 changed files with 7 additions and 4 deletions

View File

@ -94,9 +94,11 @@ final class PlayerControlsModel: ObservableObject {
}
func resetTimer() {
if !presentingControls {
show()
}
#if os(tvOS)
if !presentingControls {
show()
}
#endif
removeTimer()
timer = Timer.scheduledTimer(withTimeInterval: 5.0, repeats: false) { _ in

View File

@ -426,7 +426,7 @@ struct VideoDetails: View {
var detailsPage: some View {
Group {
Group {
VStack(alignment: .leading, spacing: 0) {
if let video = player.currentVideo {
VStack(spacing: 6) {
HStack {
@ -440,6 +440,7 @@ struct VideoDetails: View {
Divider()
}
.padding(.bottom, 6)
VStack(alignment: .leading, spacing: 10) {
if let description = video.description {