diff --git a/packages/server/src/interfaces/Http.ts b/packages/server/src/interfaces/Http.ts index 2189cb106..b956f8c3e 100644 --- a/packages/server/src/interfaces/Http.ts +++ b/packages/server/src/interfaces/Http.ts @@ -4,4 +4,5 @@ export const ACCEPT_TYPE = { APPLICATION_JSON_TABLE: 'application/json+table', APPLICATION_XLSX: 'application/xlsx', APPLICATION_CSV: 'application/csv', + APPLICATION_TEXT_HTML: 'application/json+html', }; diff --git a/shared/pdf-templates/src/components/InvoicePaperTemplate.tsx b/shared/pdf-templates/src/components/InvoicePaperTemplate.tsx index 5e718b107..669c734cc 100644 --- a/shared/pdf-templates/src/components/InvoicePaperTemplate.tsx +++ b/shared/pdf-templates/src/components/InvoicePaperTemplate.tsx @@ -250,6 +250,7 @@ export function InvoicePaperTemplate({ ), + thStyle: { width: '60%' }, }, { label: lineQuantityLabel, accessor: 'quantity', align: 'right' }, { label: lineRateLabel, accessor: 'rate', align: 'right' }, diff --git a/shared/pdf-templates/src/components/PaperTemplate.tsx b/shared/pdf-templates/src/components/PaperTemplate.tsx index 1953959f6..220e0305a 100644 --- a/shared/pdf-templates/src/components/PaperTemplate.tsx +++ b/shared/pdf-templates/src/components/PaperTemplate.tsx @@ -89,6 +89,7 @@ interface PaperTemplateTableProps { label: string; value?: JSX.Element; align?: 'left' | 'center' | 'right'; + thStyle?: React.CSSProperties; }>; data: Array>; } @@ -140,7 +141,7 @@ PaperTemplate.Table = ({ columns, data }: PaperTemplateTableProps) => { {columns.map((col, index) => ( - + {col.label} ))} @@ -210,6 +211,7 @@ PaperTemplate.TotalLine = ({ [totalBottomBordered]: border === PaperTemplateTotalBorder.Dark, [totalBottomGrayBordered]: border === PaperTemplateTotalBorder.Gray, })} + style={style} > {label} diff --git a/shared/pdf-templates/src/components/PaperTemplateLayout.tsx b/shared/pdf-templates/src/components/PaperTemplateLayout.tsx index 07e1ad2de..434ba2b84 100644 --- a/shared/pdf-templates/src/components/PaperTemplateLayout.tsx +++ b/shared/pdf-templates/src/components/PaperTemplateLayout.tsx @@ -46,7 +46,6 @@ th { border-style: solid; border-width: 0; } - body{ margin: 0; font-size: 1rem; @@ -57,10 +56,12 @@ body{ -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } - body, h1, h2, h3, h4, h5, h6{ font-family: "Open Sans", sans-serif; font-optical-sizing: auto; font-style: normal; } +strong { + font-weight: 600; +} `;