(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

@@ -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>