Skip to content

fix(home): loosen header stat spacing and standardize view-toggle button size#2583

Merged
MattPua merged 1 commit into
mainfrom
posthog-code/home-header-spacing-button-size
Jun 10, 2026
Merged

fix(home): loosen header stat spacing and standardize view-toggle button size#2583
MattPua merged 1 commit into
mainfrom
posthog-code/home-header-spacing-button-size

Conversation

@MattPua

@MattPua MattPua commented Jun 10, 2026

Copy link
Copy Markdown
Member

What

Two small polish fixes to the Home view header (packages/ui/src/features/home/components/HomeView.tsx):

  1. Left side — status stats spacing. The running / in progress / needs attention stats were cramped together (gap-3, 12px), and each dot sat tight against its label (gap-1.5, 6px). Widened to gap-5 (24px) between stats and gap-2 (8px) dot→label.
  2. Right side — view-toggle button size. The List / Board / Config toggle used size="xs", smaller than the size="sm" standard used almost everywhere else in packages/ui (98 sm usages vs 30 xs). Bumped all three to size="sm" and scaled their icons 12 → 14px to stay proportionate.

Before:
CleanShot 2026-06-10 at 12 53 10@2x

After:
CleanShot 2026-06-10 at 12 51 16@2x

Why

The header read as a clump on the left and the toggle buttons looked undersized next to other toolbars (e.g. Inbox, code review).

Testing

  • pnpm --filter @posthog/ui typecheck + pre-commit biome/typecheck pass.
  • Verified live in the dev app (Home view is behind the posthog-code-home-tab flag): stats now have clear breathing room and the toggle matches standard button sizing in both light and dark mode.

Created with PostHog Code

…ton size

The Home header status stats (running / in progress / needs attention)
were cramped together (gap-3), and the List/Board/Config view toggle used
size="xs" buttons, smaller than the size="sm" standard used across the rest
of packages/ui. Widen the inter-stat gap (gap-5) and dot-to-label gap (gap-2),
and bump the toggle buttons to size="sm" with proportionate 14px icons.

Generated-By: PostHog Code
Task-Id: 1df3c04a-f4b0-4796-81b3-a835f7fc7c73
@greptile-apps

greptile-apps Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(home): loosen header stat spacing an..." | Re-trigger Greptile

@MattPua MattPua merged commit 2193f84 into main Jun 10, 2026
15 of 16 checks passed
@MattPua MattPua deleted the posthog-code/home-header-spacing-button-size branch June 10, 2026 20:15
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.

2 participants