Skip to content

fix(ux): themed, non-overflowing, mobile-friendly pagination#293

Merged
QSchlegel merged 1 commit into
preprodfrom
claude/tx-pagination-redesign
Jun 13, 2026
Merged

fix(ux): themed, non-overflowing, mobile-friendly pagination#293
QSchlegel merged 1 commit into
preprodfrom
claude/tx-pagination-redesign

Conversation

@QSchlegel

Copy link
Copy Markdown
Collaborator

The transactions pagination bar (screenshot) overflowed its card on the right, used hardcoded dark bg-gray-800/900 colors off-theme, and a raw unstyled <select>.

Change — pagination.tsx body only (props unchanged)

  • Container: border-x + shadow-md + p-4 → themed border bg-card px-3 py-2 with flex-wrap min-w-0 gap-3 so the three groups reflow to a second row on narrow screens instead of spilling off-screen (the actual overflow fix).
  • Sort toggle: outline Button, size=sm, icon-only on mobile (label hidden sm:inline). Kept neutral Ascending/Descending (the DRep list is a Blockfrost order=asc|desc param, not time-sorted).
  • Page size: native <select> → shadcn Select; identical options + reset-to-page-1.
  • Nav: compact icon-only prev/next (h-9 w-9), tabular-nums muted page indicator; native disabled: styling.

PaginationProps is byte-for-byte unchanged, so both call sites (all-transactions.tsx, homepage/governance/drep/index.tsx) compile and behave identically.

Verify

  • Chrome MCP 390px + desktop: bar stays inside the card, no right overflow, reflows to two rows on mobile, themed; DRep list page unchanged.
  • tsc clean; jest 362 passed.

Part of the transactions-UI redesign (synthesized via a map→design→judge workflow). Follow-ups: row information-hierarchy flip + section/balance polish.

🤖 Generated with Claude Code

The transactions pagination bar overflowed its card on the right and used
hardcoded dark colors + a raw <select>. Rewrite the body (props unchanged):
- container: themed `border bg-card`, `flex-wrap min-w-0 gap-3` so the groups
  reflow instead of spilling off the right edge.
- sort toggle: outline Button, icon-only on mobile (label hidden < sm).
- page size: shadcn Select (was a native unstyled <select>); same options +
  reset-to-page-1 behavior.
- nav: compact icon-only prev/next (h-9 w-9), muted tabular-nums page indicator;
  rely on Button's native disabled styling.

PaginationProps is unchanged, so both call sites (transactions + DRep list)
behave identically.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
multisig Ready Ready Preview, Comment Jun 13, 2026 11:01am

Request Review

@QSchlegel QSchlegel merged commit b13fb50 into preprod Jun 13, 2026
6 of 7 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.

1 participant