Skip to content

ux(sidebar): tighten nav item density #159

Closed

Description

@gkhngyk

Problem

The dashboard sidebar's nav items use text-sm (14px) with py-2 padding. That reads a little chunky next to the rest of the dashboard chrome — closer to the density of marketing-page nav than to the compact pattern most analytics products converge on (Vercel, Linear, etc. sit around 13px).

Proposed change

In web/src/components/layout/sidebar.tsx, drop both nav-item class strings from text-sm py-2 to text-[13px] py-1.5.

Two touch points — same swap in each:

  • The locked (plan-gated) span at line 125
  • The regular nav Link span at line 158
- 'flex … rounded-md px-2 py-2 text-sm font-medium …'
+ 'flex … rounded-md px-2 py-1.5 text-[13px] font-medium …'

The group section headers (text-xs uppercase) and the collapsed-state badges already use smaller scales — no change needed there.

Acceptance criteria

  • Nav items render at 13px / py-1.5 in both the regular and the plan-locked state.
  • Active highlight, hover state, and icon alignment still look correct.
  • Collapsed sidebar (icon-only) is unaffected — only label-bearing rows change visibly.
  • yarn tsc --noEmit + yarn lint clean.

Out of scope

  • Reworking the group headers, brand switcher, user profile row, or collapse toggle.
  • Introducing a sidebar-density preference / toggle. If a contributor proposes that, please scope it to a separate issue.

Activity

  1. added
    enhancement
    good first issue
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions