Skip to content

Commit 5944730

Browse files
chore: release packages (#113)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ee7dee3 commit 5944730

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

.changeset/fix-table-column-width.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# pdfx-cli
22

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- [#112](https://github.com/akii09/pdfx/pull/112) [`ee7dee3`](https://github.com/akii09/pdfx/commit/ee7dee35986e2dc9d977f8f438a664caaa5e6130) Thanks [@akii09](https://github.com/akii09)! - Fix `DataTable`/`Table` fixed-width columns and `PdfList` overlapping rows on wrapped text.
8+
9+
**DataTable / Table — fixed-width columns collapsing to zero (#110)**
10+
11+
Setting a `width` prop on a `TableCell` or `DataTable` column had no effect — the column always rendered at zero width. Root cause: `flex: 0` in the `cellFixed` style is shorthand for `flexGrow:0 + flexShrink:0 + flexBasis:0`. The `flexBasis:0` overrode the explicit `width` in Yoga layout. Fixed by replacing `flex: 0` with the individual `flexGrow: 0` / `flexShrink: 0` properties so `width` is respected.
12+
13+
All accepted formats now work: numbers (pt), percentage strings (`"25%"`), and pixel strings (`"50px"`).
14+
15+
**PdfList — overlapping rows when item text wraps to multiple lines (#103)**
16+
17+
`PdfList` with any variant could render overlapping rows when item text wrapped to 2+ lines. Root cause: `flex: 1` on `Text` nodes sets `flexBasis:0`, causing Yoga to under-estimate multi-line text height — the next row was laid out too high. Fixed by moving `flex: 1` off `Text` and onto a wrapping `View` (`itemTextWrap`) across all variants: `bullet`, `numbered`, `checklist`, `icon`, and `multi-level`.
18+
19+
**Existing installs:** re-run `pdfx add table`, `pdfx add data-table`, and `pdfx add list` to pick up these fixes.
20+
321
## 0.5.0
422

523
### Minor Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdfx-cli",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "CLI for PDFx components",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)