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:
1 parent
7a349b8c34
commit
cea5decdb6
1 file changed
+1
-1
@@ -244,7 +244,7 @@ struct ThumbnailCell: View, Equatable {
|
||||
|
||||
private var stars: some View {
|
||||
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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user