Sterne-Anzeige robust gegen Rating -1 (abgelehnt in LR)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-04 15:43:02 +00:00
1 parent 7a349b8c34
commit cea5decdb6
1 file changed
+1 -1
@@ -244,7 +244,7 @@ struct ThumbnailCell: View, Equatable {
private var stars: some View { private var stars: some View {
HStack(spacing: 1) { HStack(spacing: 1) {
ForEach(0..<item.rating, id: \.self) { _ in ForEach(0..<max(0, min(5, item.rating)), id: \.self) { _ in
Image(systemName: "star.fill").font(.system(size: 9)) Image(systemName: "star.fill").font(.system(size: 9))
} }
} }