Skip to content

Mobile dashboard: render metric cards 2-per-row on small screens - #72

Merged
Skeyelab merged 2 commits into
masterfrom
copilot/fix-mobile-dashboard-boxes
Mar 24, 2026
Merged

Skeyelab merged 2 commits into
masterfrom
copilot/fix-mobile-dashboard-boxes

Conversation

Copilot AI commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

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 just sm+)
    • gap-4 → gap-3 sm:gap-4 (slightly tighter gutter on mobile for the narrower cards)
- <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ <div className="grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4">

lg:grid-cols-4 is unchanged — desktop layout unaffected.

Original prompt

This section details on the original issue you should resolve

<issue_title>Mobile dashboard</issue_title>
<issue_description>image

Let's make these boxes 2 across on mobile, so 50% wide plus appropriate margins</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 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.

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
Copilot AI requested a review from Skeyelab March 24, 2026 18:17
@Skeyelab
Skeyelab marked this pull request as ready for review March 24, 2026 18:22
Copilot AI review requested due to automatic review settings March 24, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-2 at the smallest viewport (instead of starting at sm).
  • Reduce mobile gutter spacing with gap-3 while preserving sm:gap-4 for larger screens.

@Skeyelab
Skeyelab merged commit a6e47b9 into master Mar 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile dashboard

3 participants