refactor(FE-364): Refine PDF table cell styles and header alignment

This commit is contained in:
rstubryan
2025-12-16 13:56:48 +07:00
parent 5c8bc4fc6e
commit 84e562e22c
@@ -51,6 +51,15 @@ const pdfStyles = StyleSheet.create({
backgroundColor: '#F5F5F5',
},
tableCell: {
flex: 1,
borderRightWidth: 1,
borderRightColor: '#000000',
borderRightStyle: 'solid',
padding: 4,
fontSize: 8,
textAlign: 'left',
},
tableCellNo: {
flex: 1,
borderRightWidth: 1,
borderRightColor: '#000000',
@@ -104,6 +113,7 @@ const pdfStyles = StyleSheet.create({
borderBottomColor: '#000000',
borderBottomStyle: 'solid',
paddingVertical: 12,
textAlign: 'center',
},
tableCellRight: {
flex: 1,
@@ -342,7 +352,7 @@ const createPDFDocument = (
: {},
]}
>
<View style={[pdfStyles.tableCell, { flex: 0.5 }]}>
<View style={[pdfStyles.tableCellNo, { flex: 0.5 }]}>
<Text>{index + 1}</Text>
</View>
<View style={pdfStyles.tableCell}>