Adjust Stat Card Layout
Nucleic-Session: 0112C718-2A09-4547-9C71-C6C8A08BA385 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -102,8 +102,8 @@ struct HomeView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var statCards: some View {
|
private var statCards: some View {
|
||||||
// Flow the cards into two rows (3 + 2) so each gets ~a third of the width rather than a
|
// Flow the cards into two rows of three so each gets ~a third of the width rather than a
|
||||||
// fifth — enough room for labels like "In progress" and full token counts to render cleanly
|
// sixth — enough room for labels like "In progress" and full token counts to render cleanly
|
||||||
// instead of wrapping or truncating.
|
// instead of wrapping or truncating.
|
||||||
LazyVGrid(columns: Array(repeating: GridItem(.flexible(), spacing: 12), count: 3), spacing: 12) {
|
LazyVGrid(columns: Array(repeating: GridItem(.flexible(), spacing: 12), count: 3), spacing: 12) {
|
||||||
StatCard(value: counts.projects, label: "Projects", icon: "folder")
|
StatCard(value: counts.projects, label: "Projects", icon: "folder")
|
||||||
|
|||||||
Reference in New Issue
Block a user