mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +00:00
refactor(FE): Omit right border for last PDF table column
This commit is contained in:
@@ -88,13 +88,17 @@ export const PdfTfoot = ({
|
|||||||
|
|
||||||
const cellStyle =
|
const cellStyle =
|
||||||
column.key === 'no'
|
column.key === 'no'
|
||||||
? [styles.tableCellNo, { flex: column.flex }]
|
? [
|
||||||
|
styles.tableCellNo,
|
||||||
|
{ flex: column.flex, borderRightWidth: isLastColumn ? 0 : 1 },
|
||||||
|
]
|
||||||
: cellData?.align === 'right'
|
: cellData?.align === 'right'
|
||||||
? [
|
? [
|
||||||
styles.tableCellRight,
|
styles.tableCellRight,
|
||||||
{
|
{
|
||||||
flex: column.flex,
|
flex: column.flex,
|
||||||
color: cellData?.color || 'black',
|
color: cellData?.color || 'black',
|
||||||
|
borderRightWidth: isLastColumn ? 0 : 1,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: cellData?.align === 'center'
|
: cellData?.align === 'center'
|
||||||
@@ -103,6 +107,7 @@ export const PdfTfoot = ({
|
|||||||
{
|
{
|
||||||
flex: column.flex,
|
flex: column.flex,
|
||||||
color: cellData?.color || 'black',
|
color: cellData?.color || 'black',
|
||||||
|
borderRightWidth: isLastColumn ? 0 : 1,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: isLastColumn
|
: isLastColumn
|
||||||
|
|||||||
Reference in New Issue
Block a user