Repository navigation
Mobile dashboard: render metric cards 2-per-row on small screens - #72
Merged
Merged
Conversation
Co-authored-by: Skeyelab <313969+Skeyelab@users.noreply.github.com> Agent-Logs-Url: https://github.com/ericdahl-dev/clawproxy/sessions/282d62f1-f246-4d4b-b877-51cc088f97cb
Copilot
AI
changed the title
[WIP] Fix mobile dashboard boxes to be 50% wide
Mobile dashboard: render metric cards 2-per-row on small screens
Mar 24, 2026
Skeyelab
marked this pull request as ready for review
March 24, 2026 18:22
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the dashboard metrics layout to better use horizontal space on small screens by rendering metric cards in two columns on mobile, reducing vertical scrolling in the dashboard UI.
Changes:
- Make metric grids render
grid-cols-2at the smallest viewport (instead of starting atsm). - Reduce mobile gutter spacing with
gap-3while preservingsm:gap-4for larger screens.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dashboard metric cards rendered single-column on mobile, wasting vertical space and requiring excessive scrolling to see all metrics.
Changes
components/app/dashboard-metric-cards.tsx— both metric grid rows:sm:grid-cols-2→grid-cols-2(2 columns from smallest viewport, not justsm+)gap-4→gap-3 sm:gap-4(slightly tighter gutter on mobile for the narrower cards)lg:grid-cols-4is unchanged — desktop layout unaffected.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.