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:
@@ -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")
|
||||||
|
|||||||
@@ -140,6 +140,10 @@ struct PairingIntroView: View {
|
|||||||
.padding(.top, 8)
|
.padding(.top, 8)
|
||||||
}
|
}
|
||||||
.padding()
|
.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) {
|
.sheet(isPresented: $showScanner) {
|
||||||
PairingScannerView { payload in
|
PairingScannerView { payload in
|
||||||
showScanner = false
|
showScanner = false
|
||||||
|
|||||||
Reference in New Issue
Block a user