commit 4812ac00c10eca1ff213948a6bf216a920b245dc
parent 947af7b7b38c00a1df0d756536f6755002b8ae21
Author: Michael Camilleri <[email protected]>
Date: Tue, 2 Jun 2026 22:15:41 +0900
Set a maximum width for scoreboard in Success Panel
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Crossmate/Views/SuccessPanel.swift b/Crossmate/Views/SuccessPanel.swift
@@ -218,7 +218,11 @@ struct SuccessPanel: View {
}
.scrollIndicators(.hidden)
}
- .frame(maxWidth: .infinity, alignment: .leading)
+ // Cap the list width so a wide iPad column doesn't strand each
+ // name far from its count, then expand-to-fill and centre that
+ // capped block within the column.
+ .frame(maxWidth: 320, alignment: .leading)
+ .frame(maxWidth: .infinity)
.padding(.top, 8)
}
.padding(.leading, 18)