Skip to content

Commit ec76bbb

Browse files
committed
feat(web): label the per-row amount on list pages
Providers mobile card and chains mobile card both show a small uppercase label ("Total Stake" / "Relays (30d)") above the value on the right, matching the same pattern.
1 parent 715cd3d commit ec76bbb

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎apps/web/src/app/chains/page.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ export default function ChainsPage() {
146146
{s.cu30d && ` · ${formatNumberKMB(s.cu30d)} CU (30d)`}
147147
</div>
148148
</div>
149-
<div className="text-base font-medium shrink-0 text-right">
150-
{formatNumberKMB(s.relays30d)}
151-
<div className="text-xs text-muted-foreground font-normal">relays (30d)</div>
149+
<div className="shrink-0 text-right">
150+
<div className="text-[11px] uppercase tracking-wider text-muted-foreground">Relays (30d)</div>
151+
<div className="text-base font-semibold mt-0.5">{formatNumberKMB(s.relays30d)}</div>
152152
</div>
153153
</Link>
154154
</li>

‎apps/web/src/app/providers/page.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ function ProvidersContent() {
141141
{p.relaySum30d && ` · ${formatNumberKMB(p.relaySum30d)} relays (30d)`}
142142
</div>
143143
</div>
144-
<div className="text-base font-medium shrink-0">
145-
<LavaAmount amount={total.toString()} />
144+
<div className="shrink-0 text-right">
145+
<div className="text-[11px] uppercase tracking-wider text-muted-foreground">Total Stake</div>
146+
<div className="text-base font-semibold mt-0.5"><LavaAmount amount={total.toString()} /></div>
146147
</div>
147148
</Link>
148149
</li>

0 commit comments

Comments
 (0)