refactor(FE): Omit right border for last PDF table column

This commit is contained in:
rstubryan
2026-01-28 11:03:17 +07:00
parent ca0d379c2c
commit 0a5efbe383
+6 -1
View File
@@ -88,13 +88,17 @@ export const PdfTfoot = ({
const cellStyle =
column.key === 'no'
? [styles.tableCellNo, { flex: column.flex }]
? [
styles.tableCellNo,
{ flex: column.flex, borderRightWidth: isLastColumn ? 0 : 1 },
]
: cellData?.align === 'right'
? [
styles.tableCellRight,
{
flex: column.flex,
color: cellData?.color || 'black',
borderRightWidth: isLastColumn ? 0 : 1,
},
]
: cellData?.align === 'center'
@@ -103,6 +107,7 @@ export const PdfTfoot = ({
{
flex: column.flex,
color: cellData?.color || 'black',
borderRightWidth: isLastColumn ? 0 : 1,
},
]
: isLastColumn