Skip to content

fix: align payroll receipt sub-tables to full receipt width - #2807

Merged
serikjensen merged 1 commit into
mainfrom
fix/payroll-receipt-table-alignment
Sep 18, 2026
Merged

serikjensen merged 1 commit into
mainfrom
fix/payroll-receipt-table-alignment

Conversation

@serikjensen

Copy link
Copy Markdown
Member

What

The payroll receipt sub-tables (Debited, Tax, Employee breakdown) rendered at content width and left-aligned, so they did not line up with the receipt card above them.

Why

Each table was wrapped in a Flex with the default align-items: flex-start, which left the tables at their intrinsic content width instead of stretching to fill the column.

Changes

  • Set alignItems="stretch" on the three section Flex wrappers so the tables fill the column width.
  • Moved the 656px max-width centering from .receiptHeader onto the shared .container so the card and all sub-tables share one aligned column.

Verification

Verified in Storybook (Domain/Payroll/PayrollReceipts): all sub-tables now measure the full 656px container width and align with the receipt card.

🤖 Generated with Claude Code

The Debited, Tax, and Employee sub-tables rendered at content width and
left-aligned instead of matching the receipt card above them. Their Flex
wrappers defaulted to align-items: flex-start, so the tables never stretched
to fill the column. Set alignItems="stretch" on those wrappers and moved the
656px max-width centering from the header onto the shared container so the
card and all sub-tables share one aligned column.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@serikjensen
serikjensen requested a review from a team as a code owner September 18, 2026 21:57

@krisxcrash krisxcrash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@serikjensen
serikjensen added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit aa5d735 Sep 18, 2026
39 checks passed
@serikjensen
serikjensen deleted the fix/payroll-receipt-table-alignment branch September 18, 2026 22:20
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