Skip to content

Commit

Permalink
Merge pull request #349 from ZIMkaRU/feature/move-statement-details-s…
Browse files Browse the repository at this point in the history
…ection-under-logo-for-pdf-reports

Move statement details section under logo for pdf reports
  • Loading branch information
ezewer authored Mar 4, 2024
2 parents 8328e73 + 222d8aa commit 35a3e39
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
2 changes: 2 additions & 0 deletions workers/loc.api/generate-report-file/pdf-writer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class PdfWriter {
template: 'No data',
format: 'portrait',
orientation: 'Letter',
headerHeight: '65mm',
footerHeight: '28mm',
...args
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ html(lang=language)
- const username = jobData.userInfo.username ?? email.replace(/@.*/, '') ?? ''
.content.statement-details-content
ul.responsive-table.sm.width-by-content
ul.responsive-table.width-by-content
li.table-header
.col
:translate(prop='template.statementDetails')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ html, body {
box-sizing: border-box;
}


html {
line-height: 1;
}
Expand All @@ -52,11 +51,7 @@ body {
html, body, .header, .footer {
font-family: "Inter", sans-serif;
font-weight: 400;
font-size: 8px;
}

.sm {
font-size: 5px;
font-size: 11px;
}

h1 {
Expand Down Expand Up @@ -169,6 +164,20 @@ h6 {
color: #3e4444;
}

/*
The fix for Phantomjs rendering
*/
.common-content-header {
border-width: 1px;
border-color: rgba(255, 255, 255, 0);
border-top-style: solid;
border-bottom-style: solid;
}

.no-phantomjs .common-content-header {
border: 0;
}

.responsive-table {
margin-bottom: 20px;
}
Expand Down Expand Up @@ -292,8 +301,8 @@ h6 {

.statement-details-content {
position: absolute;
top: 11px;
right: 0;
top: 50px;
left: 0;
line-height: 1;
margin-bottom: 0;
}
Expand All @@ -316,7 +325,7 @@ h6 {

/* Uses `mm` for height to support default settings of `html-pdf` lib */
.header-space, .header {
height: 43.5mm;
height: 65mm;
}

.footer-space, .footer {
Expand Down

0 comments on commit 35a3e39

Please sign in to comment.