Skip to content

Commit

Permalink
Merge pull request #4327 from open-formulieren/issue/4255-large-texta…
Browse files Browse the repository at this point in the history
…rea-crashes-pdf-generation

⚡ [#4255] Speed up PDF generation by replacing flexbox with float
  • Loading branch information
sergei-maertens authored May 24, 2024
2 parents cb5b374 + 75483b2 commit d9a5bd3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/openforms/scss/pdfs/_submission-step-row.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
@import '~microscope-sass/lib/typography';

.submission-step-row {
display: flex;
justify-content: flex-start;
align-items: flex-start;

& + & {
margin-top: 1mm;
}
Expand Down Expand Up @@ -42,12 +38,17 @@
@include body();
width: 40%;
padding-right: 2em;
// float is used here, because flexbox/grid/tables are really slow with
// weasyprint, especially if large textareas are used
// see: https://github.com/open-formulieren/open-forms/issues/4255
float: left;
}

&__value {
@include body();
width: 60%;
word-break: break-all;
margin-left: 40%;

// wysiwyg content
p {
Expand Down

0 comments on commit d9a5bd3

Please sign in to comment.