Skip to content

Align homepage stats on mobile - #1520

Merged
manudeli merged 1 commit into
mainfrom
manudeli/fix-mobile-homepage-stats
Nov 22, 2026
Merged

manudeli merged 1 commit into
mainfrom
manudeli/fix-mobile-homepage-stats

Conversation

@manudeli

@manudeli manudeli commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator
homepage-stats-as-is-to-be ## Summary
  • Align the icon and label on the left and the value on the right for each homepage stat below the md breakpoint.
  • Keep the existing inline layout at desktop widths and keep labels readable on narrow phones.

Mobile comparison

AS-IS TO-BE
Each row is centered, with the value between the icon and label. Icons and labels share a left edge, and values share a right edge.

Verification

  • Checked the rendered stats locally at mobile and desktop widths with sample data.
  • TypeScript and lint passed. The full suite encountered local socket and browser restrictions.

Summary by CodeRabbit

  • Style
    • Updated landscape statistics to display icons above the stat, with adjusted label, value, and spacing layouts.
    • Landscape statistics now use full width on small screens.

@changeset-bot

changeset-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 78c6560

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Hero stats now receive their layout directly. Landscape layouts use responsive icon alignment, label and value placement, spacing, and container sizing.

Changes: Hero stat layout

Layer / File(s) Summary
Responsive hero stat rendering
src/components/ds/ui/StatsSection.tsx
HeroStat now receives the layout and adjusts icon alignment, label and value placement, and spacing for landscape layouts. The hero container stretches landscape stats to full width on small screens and aligns items to stretch below the medium breakpoint.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: abeuty

Merge Risk: Minimal · up to 78c65

This change aligns homepage stats on mobile and keeps the desktop layout. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Align homepage stats on mobile" matches the PR objective of aligning each stat's icon, label, and value on narrow screens below the md breakpoint. The raw summary describes a HeroStat chang…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "Align homepage stats on mobile" matches the PR objective of aligning each stat's icon, label, and value on narrow screens below the md breakpoint. The raw summary describes a HeroStat change that takes a layout prop, stacks landscape icons above the stat, and stretches landscape layouts to full width on small screens. The title names the mobile alignment goal but not the layout prop refactor, which is a real part of the change. The title is specific and accurate, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 631d92d7-ed68-4962-b58c-f58b29ef6c20
Commits

Reviewing files that changed from the base of the PR and between 61d048f and 78c6560.

Files selected for processing: 1

  • src/components/ds/ui/StatsSection.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com 78c6560 Commit Preview URL

Branch Preview URL
Nov 22 2026, 03:47 AM

@manudeli
manudeli merged commit 3b431a6 into main Nov 22, 2026
8 checks passed
@manudeli
manudeli deleted the manudeli/fix-mobile-homepage-stats branch November 22, 2026 04:02
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.

1 participant