From 0a5efbe383daae47b9711c61fc073b9ea2abcdd6 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Wed, 28 Jan 2026 11:03:17 +0700 Subject: [PATCH] refactor(FE): Omit right border for last PDF table column --- src/components/helper/pdf/table/PdfTfoot.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/helper/pdf/table/PdfTfoot.tsx b/src/components/helper/pdf/table/PdfTfoot.tsx index 698aa209..a9f209b1 100644 --- a/src/components/helper/pdf/table/PdfTfoot.tsx +++ b/src/components/helper/pdf/table/PdfTfoot.tsx @@ -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