mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
refactor(FE-364): refactor PDF table styles and remove total styles
This commit is contained in:
@@ -57,6 +57,7 @@ const pdfStyles = StyleSheet.create({
|
|||||||
borderRightStyle: 'solid',
|
borderRightStyle: 'solid',
|
||||||
padding: 4,
|
padding: 4,
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
tableCellLast: {
|
tableCellLast: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -72,6 +73,11 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
backgroundColor: '#F5F5F5',
|
backgroundColor: '#F5F5F5',
|
||||||
|
borderBottomWidth: 1,
|
||||||
|
borderBottomColor: '#000000',
|
||||||
|
borderBottomStyle: 'solid',
|
||||||
|
paddingVertical: 12,
|
||||||
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
tableCellHeaderCenter: {
|
tableCellHeaderCenter: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -94,14 +100,10 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
backgroundColor: '#F5F5F5',
|
backgroundColor: '#F5F5F5',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
},
|
borderBottomWidth: 1,
|
||||||
tableCellHeaderRightLast: {
|
borderBottomColor: '#000000',
|
||||||
flex: 1,
|
borderBottomStyle: 'solid',
|
||||||
padding: 4,
|
paddingVertical: 12,
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
backgroundColor: '#F5F5F5',
|
|
||||||
textAlign: 'right',
|
|
||||||
},
|
},
|
||||||
tableCellHeaderLast: {
|
tableCellHeaderLast: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -109,14 +111,10 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
backgroundColor: '#F5F5F5',
|
backgroundColor: '#F5F5F5',
|
||||||
},
|
borderBottomWidth: 1,
|
||||||
tableCellHeaderCenterLast: {
|
borderBottomColor: '#000000',
|
||||||
flex: 1,
|
borderBottomStyle: 'solid',
|
||||||
padding: 4,
|
paddingVertical: 12,
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
backgroundColor: '#F5F5F5',
|
|
||||||
textAlign: 'center',
|
|
||||||
},
|
},
|
||||||
tableCellRight: {
|
tableCellRight: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@@ -136,12 +134,6 @@ const pdfStyles = StyleSheet.create({
|
|||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
tableCellRightLast: {
|
|
||||||
flex: 1,
|
|
||||||
padding: 4,
|
|
||||||
fontSize: 8,
|
|
||||||
textAlign: 'right',
|
|
||||||
},
|
|
||||||
tableCellCenterLast: {
|
tableCellCenterLast: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
padding: 4,
|
padding: 4,
|
||||||
@@ -153,44 +145,6 @@ const pdfStyles = StyleSheet.create({
|
|||||||
borderBottomColor: '#000000',
|
borderBottomColor: '#000000',
|
||||||
borderBottomStyle: 'solid',
|
borderBottomStyle: 'solid',
|
||||||
},
|
},
|
||||||
totalRow: {
|
|
||||||
backgroundColor: '#F5F5F5',
|
|
||||||
borderTopWidth: 1,
|
|
||||||
borderTopColor: '#000000',
|
|
||||||
borderTopStyle: 'solid',
|
|
||||||
},
|
|
||||||
totalCell: {
|
|
||||||
flex: 1,
|
|
||||||
borderRightWidth: 1,
|
|
||||||
borderRightColor: '#000000',
|
|
||||||
borderRightStyle: 'solid',
|
|
||||||
padding: 4,
|
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
},
|
|
||||||
totalCellRight: {
|
|
||||||
flex: 1,
|
|
||||||
borderRightWidth: 1,
|
|
||||||
borderRightColor: '#000000',
|
|
||||||
borderRightStyle: 'solid',
|
|
||||||
padding: 4,
|
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
textAlign: 'right',
|
|
||||||
},
|
|
||||||
totalCellRightLast: {
|
|
||||||
flex: 1,
|
|
||||||
padding: 4,
|
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
textAlign: 'right',
|
|
||||||
},
|
|
||||||
totalCellLast: {
|
|
||||||
flex: 1,
|
|
||||||
padding: 4,
|
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: 'bold',
|
|
||||||
},
|
|
||||||
supplierSection: {
|
supplierSection: {
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user