Skip to content

fix: make the layout responsive and show activities as cards on phones - #26

Merged
pitercoding merged 1 commit into
mainfrom
fix/responsive-layout
Nov 28, 2026
Merged

pitercoding merged 1 commit into
mainfrom
fix/responsive-layout

Conversation

@pitercoding

Copy link
Copy Markdown
Owner

Summary

  • Fixes the page scrolling sideways on screens up to 768px when the history has activities.
  • Adds a phone layout: activities appear as cards instead of a 9-column table.

Motivation

  • The history table's minimum width stretched every panel, so the form and summary were cut off on phones and small tablets.

Implementation

  • Single-column grid uses minmax(0, 1fr) and panels min-width: 0, so the table scrolls inside its own box.
  • Up to 640px each row becomes a card (data-label on cells, ARIA roles keep the table semantics).
  • Tablet: two-column form. Phone: smaller spacing, full-width buttons. Buttons and selects are 44px high.

Testing

  • Emulated 12 screen widths (320 to 1920px) with fake data: the page width equals the screen width everywhere (it was 864px up to 768px before).
  • Build passes and 32 unit tests pass (3 new for the table).

@vercel

vercel Bot commented Nov 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
worklog Ready Ready Preview Nov 28, 2026 12:40pm UTC

@pitercoding
pitercoding merged commit 5487d23 into main Nov 28, 2026
5 checks passed
@pitercoding
pitercoding deleted the fix/responsive-layout branch November 28, 2026 12:41
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