Skip to content

Prevent invoice items sum row wrapping#9

Merged
H1D merged 1 commit into
H1D:mainfrom
komposter:fix/prevent-sum-row-text-wrapping
Apr 25, 2026
Merged

Prevent invoice items sum row wrapping#9
H1D merged 1 commit into
H1D:mainfrom
komposter:fix/prevent-sum-row-text-wrapping

Conversation

@komposter

@komposter komposter commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

What changed

The invoice items table adds a final sum row like:

Spolu: 1 100.00

When the last column gets narrow (many visible columns), jspdf-autotable may wrap this string and split the number across lines.

This change makes the sum row render in the first column and merges the sum row across all columns to avoid wrapping in a narrow cell.

Implementation

  • Move sum row content to the first column
  • Set colSpan on the first sum-row cell and hide the remaining cells

Testing

  • bun test tests/
  • bunx playwright test

Deploy Preview: https://69ecf7d0568a3aa5f0229395--easypdf-lite.netlify.app/

Prefilled test links:

@komposter
komposter force-pushed the fix/prevent-sum-row-text-wrapping branch from 56131bb to 22a438a Compare April 13, 2026 20:21
@komposter komposter changed the title Prevent invoice items sum row text wrapping Prevent invoice items sum row wrapping Apr 13, 2026
@H1D
H1D merged commit cfbf189 into H1D:main Apr 25, 2026
2 of 4 checks passed
@komposter
komposter deleted the fix/prevent-sum-row-text-wrapping branch April 25, 2026 17:43
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