✨(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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user