style: improve leaderboard heading on mobile#589
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Leaderboard page header layout/typography to better match the Orchestrators page, with a focus on improved mobile alignment and sizing.
Changes:
- Updated the Leaderboard header container layout (alignment, spacing, responsive flex direction).
- Adjusted the Leaderboard
<Heading>sizing and responsive alignment. - Refined the filter controls layout for better mobile centering/wrapping behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rickstaa
left a comment
There was a problem hiding this comment.
Thanks for tackling this! The heading size fix (size="3" → size="2"), comment cleanup, and switch to gap-based spacing are all great improvements.
One issue: the center alignment on mobile is inconsistent with the rest of the app.
Every other page (Orchestrators, Gateways, Transactions) uses left-aligned headings on all screen sizes. This PR introduces textAlign: "center" and alignItems: "center" on mobile, which creates a new inconsistency.
Specific styles to remove/adjust:
- Outer Flex container — remove
alignItems: "center" - Heading — remove
textAlign: "center"and the@bp2: textAlign: "left"override (not needed if always left-aligned) - Filter controls Flex — remove
alignItems: "center"and@bp1: justifyContent: "center" - Individual filter Flex wrappers (~lines 131, 224) — remove
justifyContent: "center"
The target pattern from orchestrators.tsx for reference:
<Flex align="center" css={{ marginBottom: "$3", justifyContent: "space-between" }}>
<Heading size="2" as="h1" css={{ fontWeight: 700 }}>
...
</Heading>
</Flex>The leaderboard still needs the column stacking on mobile (since it has filter controls the orchestrators page doesn't), but the content should be left-aligned within that column layout — matching every other page.
Everything else in this PR looks good — just needs the alignment fix. 👍
Why left-aligned with less padding?A few reasons we prefer this:
Suggested approach for the header section:This keeps the column stacking on mobile (needed for the filters) while staying left-aligned and tight — matching the rest of the app. |
@rickstaa agree with keeping it consistent with all other mobile pages on the app, but just noting that this is how the orchestrators page currently looks:
And this is how the Transactions heading looks on the overview page:
Wondering if we should also use this opportunity to make those headings left-aligned as well? |
I think the difference is when you are on the homepage compared to the individual pages. If we can have consistent behavoir amongs both that would be great! |
The flex-start value inside @BP1 duplicated the default and the parent-level declaration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>





Description
Ensures mobile styles for the Leaderboard header match the Orchestrators page.
Type of Change
Related Issue(s)
Closes: # #548
Changes Made
Testing
How to test (optional unless test is not trivial)
Impact / Risk
Risk level: Low
Impacted areas: UI
Screenshots / Recordings (if applicable)
Before:
After: