Adjust Stat Card Layout
Nucleic-Session: 0112C718-2A09-4547-9C71-C6C8A08BA385 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -99,7 +99,10 @@ struct HomeView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var statCards: some View {
|
private var statCards: some View {
|
||||||
HStack(spacing: 12) {
|
// Flow the cards into two rows (3 + 2) 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
|
||||||
|
// instead of wrapping or truncating.
|
||||||
|
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")
|
||||||
StatCard(value: running.count, label: "In progress", icon: "circle.lefthalf.filled")
|
StatCard(value: running.count, label: "In progress", icon: "circle.lefthalf.filled")
|
||||||
StatCard(value: counts.activeChats, label: "Active", icon: "bolt")
|
StatCard(value: counts.activeChats, label: "Active", icon: "bolt")
|
||||||
|
|||||||
Reference in New Issue
Block a user