Skip to content

Commit dc12a99

Browse files
committed
✨(pdf) fix table cell alignment issue in exported documents
ensures correct horizontal alignment of text based on cell props Signed-off-by: Cyril <c.gromoff@gmail.com>
1 parent 82a0c1a commit dc12a99

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to
2020
- 🐛(docx) fix image overflow by limiting width to 600px during export #1525
2121
- 🐛(frontend) preserve @ character when esc is pressed after typing it #1512
2222
- 🐛(frontend) fix pdf embed to use full width #1526
23+
- 🐛(pdf) fix table cell alignment issue in exported documents #1582
2324

2425
## [3.9.0] - 2025-11-10
2526

src/frontend/apps/impress/src/features/docs/doc-export/blocks-mapping/tablePDF.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ export const blockMappingTablePDF: DocsExporterPDF['mappings']['blockMapping']['
103103

104104
return (
105105
<TD key={colIndex} style={arrayStyle}>
106-
<Text style={styles.cell}>
106+
<Text
107+
style={[
108+
styles.cell,
109+
{
110+
width: '100%',
111+
textAlign: cellProps.textAlignment ?? 'left',
112+
},
113+
]}
114+
>
107115
{exporter.transformInlineContent(cell)}
108116
</Text>
109117
</TD>

0 commit comments

Comments
 (0)