(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>
This commit is contained in:
Cyril
2025-11-12 14:06:12 +01:00
parent 82a0c1a770
commit dc12a99d4a
2 changed files with 10 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ and this project adheres to
- 🐛(docx) fix image overflow by limiting width to 600px during export #1525
- 🐛(frontend) preserve @ character when esc is pressed after typing it #1512
- 🐛(frontend) fix pdf embed to use full width #1526
- 🐛(pdf) fix table cell alignment issue in exported documents #1582
## [3.9.0] - 2025-11-10

View File

@@ -103,7 +103,15 @@ export const blockMappingTablePDF: DocsExporterPDF['mappings']['blockMapping']['
return (
<TD key={colIndex} style={arrayStyle}>
<Text style={styles.cell}>
<Text
style={[
styles.cell,
{
width: '100%',
textAlign: cellProps.textAlignment ?? 'left',
},
]}
>
{exporter.transformInlineContent(cell)}
</Text>
</TD>