From 98657cad8d167262aba0cd98e1e4273597078598 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 21 Jun 2022 20:42:43 +1000 Subject: [PATCH 1/2] Fixes for designs --- resources/views/pdf-designs/bold.html | 7 +++++++ resources/views/pdf-designs/business.html | 6 ++++++ resources/views/pdf-designs/clean.html | 6 ++++++ resources/views/pdf-designs/creative.html | 6 ++++++ resources/views/pdf-designs/elegant.html | 6 ++++++ resources/views/pdf-designs/hipster.html | 6 ++++++ resources/views/pdf-designs/modern.html | 6 ++++++ resources/views/pdf-designs/plain.html | 6 ++++++ resources/views/pdf-designs/playful.html | 6 ++++++ resources/views/pdf-designs/tech.html | 6 ++++++ 10 files changed, 61 insertions(+) diff --git a/resources/views/pdf-designs/bold.html b/resources/views/pdf-designs/bold.html index de716f40d374..618583faf76f 100644 --- a/resources/views/pdf-designs/bold.html +++ b/resources/views/pdf-designs/bold.html @@ -278,6 +278,13 @@ margin-top: 1rem; } + + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/business.html b/resources/views/pdf-designs/business.html index 9c6fbbb7d304..fe8285c334ac 100644 --- a/resources/views/pdf-designs/business.html +++ b/resources/views/pdf-designs/business.html @@ -270,6 +270,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/clean.html b/resources/views/pdf-designs/clean.html index 30d3015c38a2..706129159743 100644 --- a/resources/views/pdf-designs/clean.html +++ b/resources/views/pdf-designs/clean.html @@ -240,6 +240,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/creative.html b/resources/views/pdf-designs/creative.html index 5d37e6d72faf..4bf969e71715 100644 --- a/resources/views/pdf-designs/creative.html +++ b/resources/views/pdf-designs/creative.html @@ -222,6 +222,12 @@ position: fixed; bottom: 0; } + + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } /** Useful snippets, uncomment to enable. **/ diff --git a/resources/views/pdf-designs/elegant.html b/resources/views/pdf-designs/elegant.html index a9c0fcffa5bb..98b39ca60bba 100644 --- a/resources/views/pdf-designs/elegant.html +++ b/resources/views/pdf-designs/elegant.html @@ -228,6 +228,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/hipster.html b/resources/views/pdf-designs/hipster.html index 02c452e383df..b14f8c2fe586 100644 --- a/resources/views/pdf-designs/hipster.html +++ b/resources/views/pdf-designs/hipster.html @@ -245,6 +245,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index 51476ddec1b4..4dfea2f4daa7 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -272,6 +272,12 @@ white-space: nowrap; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index a529de6c93f6..30acac638bfe 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -215,6 +215,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/playful.html b/resources/views/pdf-designs/playful.html index 85739d84ccfa..4d308a1a645a 100644 --- a/resources/views/pdf-designs/playful.html +++ b/resources/views/pdf-designs/playful.html @@ -288,6 +288,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ diff --git a/resources/views/pdf-designs/tech.html b/resources/views/pdf-designs/tech.html index 2eb7c69385cb..70d0973cdb96 100644 --- a/resources/views/pdf-designs/tech.html +++ b/resources/views/pdf-designs/tech.html @@ -252,6 +252,12 @@ bottom: 0; } + [data-element='product_table-product.description-td'], td { + min-width:100%; + max-width: 300px; + overflow-wrap: break-word; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ From 3386e3a785681f2f6ac81fcf258dc08f4e8cfc3e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 21 Jun 2022 20:44:26 +1000 Subject: [PATCH 2/2] Fixes for invoice designs --- ...0_fixes_for_description_in_pdf_designs.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2022_06_21_104350_fixes_for_description_in_pdf_designs.php diff --git a/database/migrations/2022_06_21_104350_fixes_for_description_in_pdf_designs.php b/database/migrations/2022_06_21_104350_fixes_for_description_in_pdf_designs.php new file mode 100644 index 000000000000..9c92973221e0 --- /dev/null +++ b/database/migrations/2022_06_21_104350_fixes_for_description_in_pdf_designs.php @@ -0,0 +1,28 @@ +