Skip to content

Commit 324f456

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 aba7959 commit 324f456

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
@@ -14,6 +14,7 @@ and this project adheres to
1414
- 🐛(docx) fix image overflow by limiting width to 600px during export #1525
1515
- 🐛(frontend) preserve @ character when esc is pressed after typing it #1512
1616
- 🐛(frontend) fix pdf embed to use full width #1526
17+
- 🐛(pdf) fix table cell alignment issue in exported documents #1582
1718

1819
## [3.9.0] - 2025-11-10
1920

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)