Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

LibraryTile: reserve the verdict line so tiles without a verdict don't sink below the grid row (spotted on the Epic tile)

Gauthier Piarretted6f4c5091529
diff --git a/Sources/HighballApp/LibraryView.swift b/Sources/HighballApp/LibraryView.swift
index 94f41b2..eb74b25 100644
--- a/Sources/HighballApp/LibraryView.swift
+++ b/Sources/HighballApp/LibraryView.swift
@@ -196,11 +196,11 @@ struct LibraryTile: View {
.font(.system(size: 12, weight: .semibold))
.lineLimit(1)
.foregroundStyle(.primary)
- if let (label, color) = verdict {
- Text(label)
- .font(.system(size: 9, weight: .semibold).monospaced())
- .foregroundStyle(color)
- }
+ // Always reserve the verdict line: cells without one were shorter, and
+ // LazyVGrid centers cells vertically, so those covers sank below the row.
+ Text(verdict?.0 ?? " ")
+ .font(.system(size: 9, weight: .semibold).monospaced())
+ .foregroundStyle(verdict?.1 ?? .clear)
}
.frame(width: width)
}