Skip to content

Commit

Permalink
add fixed-layout for product table and make sure font size is relativ…
Browse files Browse the repository at this point in the history
…e to container
  • Loading branch information
markj0hnst0n committed Dec 10, 2024
1 parent ab83f5e commit a4c12e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/letter_templates/templates/letter_templates/siel.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h1>Standard Individual Export Licence</h1>
</table>

<p style="page-break-before: always">
<table id="products-table">
<table id="products-table" class="fixed-layout">
<tr>
<td class="border-top-black padding-none align-centre" rowspan="999">
<div class="text-large border-left-black border-bottom-black">1</div>
Expand Down
5 changes: 4 additions & 1 deletion assets/css/siel_preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
font-family: Helvetica;
src: url("../fonts/Helvetica.ttf") format("truetype");
}
.document {
container-type: inline-size;
}
.document * {
font-size: 12px;
font-size: 1.75cqw;
font-family: Helvetica;
word-wrap: break-word;
}
Expand Down

0 comments on commit a4c12e6

Please sign in to comment.