nvrsion: Add horizontal layout adjustment to Stat Cards on HomeView for better visibility, fix iOS pair screen banner position on the pair screen, and adjust Login Button Icon placement.

Nucleic-Promote: 1
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-02 19:34:09 -07:00
co-authored by Nucleic
parent 07cf01b4e6
commit 4493c03de0
2 changed files with 8 additions and 1 deletions
@@ -99,7 +99,10 @@ struct HomeView: 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: running.count, label: "In progress", icon: "circle.lefthalf.filled")
StatCard(value: counts.activeChats, label: "Active", icon: "bolt")
@@ -140,6 +140,10 @@ struct PairingIntroView: View {
.padding(.top, 8)
}
.padding()
// Fill the available height so the enclosing VStack reaches full screen and the
// BuildBanner/DemoBanner strips stay pinned at the top. Without this the intro only
// claims its intrinsic height, so the stack gets centered and the banner drifts down.
.frame(maxWidth: .infinity, maxHeight: .infinity)
.sheet(isPresented: $showScanner) {
PairingScannerView { payload in
showScanner = false