← All repositories

crossmate

A collaborative crossword app for iPhone and iPad

git clone https://code.inqk.net/crossmate.git


commit 98a3aff257b10c073079f11275525af15b4530e0
parent f3ba619c9e4db5b0a7692cd32d20eeb05d9bfa6b
Author: Michael Camilleri <[email protected]>
Date:   Tue, 19 May 2026 11:43:36 +0900

Attempt to constrain height of scoreboard

Diffstat

MCrossmate/Views/PuzzleView.swift | 2++

1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/Crossmate/Views/PuzzleView.swift b/Crossmate/Views/PuzzleView.swift

@@ -452,6 +452,7 @@ private struct PuzzleScoreboard: View {
     let roster: PlayerRoster
     var layout: Layout = .vertical
     @Environment(PlayerPreferences.self) private var preferences
+    @ScaledMetric(relativeTo: .subheadline) private var horizontalHeaderHeight: CGFloat = 56
 
     enum Layout {
         /// Side-panel style: stacked rows under a "Players" heading.
@@ -666,6 +667,7 @@ private struct PuzzleScoreboard: View {
             .frame(maxWidth: .infinity)
             .padding(.vertical, 8)
         }
+        .frame(height: horizontalHeaderHeight)
     }
 
     private func scoreChip(_ score: Score) -> some View {