Skip to content

Commit

Permalink
fix: CSS fixes for tables which split over multiple pages (#131)
Browse files Browse the repository at this point in the history
Refs: #130
  • Loading branch information
yurtsevich-sbb authored Aug 6, 2024
1 parent b728ec9 commit d77444e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/resources/default/dle-pdf-export.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,20 @@ ul.toc li > a.page-number::after {

table {
border-collapse: collapse;
max-width: 100% !important;
float: none !importatnt; /* Fixes content inside of table breaking bug */
}

table tr:first-child {
tr { /* Fixes breaking of work item custom field tables */
page-break-inside: avoid;
break-inside: avoid;
}

tr:first-child {
break-after: avoid;
}

table tr:last-child {
tr:last-child {
break-before: avoid;
}

Expand Down

0 comments on commit d77444e

Please sign in to comment.