ui: limit start screen to four recent videos

This commit is contained in:
2026-10-19 20:13:39 +02:00
parent 9f1dca3081
commit 885dea74f2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2225,7 +2225,7 @@ private struct PlayerContent: View {
.help("Resume \(latest.title) at \(time(resumePosition))")
.padding(.vertical, 8)
}
ForEach(model.recentMedia.filter { resumePosition == nil || $0.id != latest?.id }) { item in
ForEach(model.recentMedia.prefix(4).filter { resumePosition == nil || $0.id != latest?.id }) { item in
Button { model.open(item.url) } label: {
HStack(spacing: 10) {
Image(systemName: item.url.isFileURL ? "doc.richtext" : "link")