From 2bdb1075fbc57d2b4ae8064b11e77c6014e6ca1e Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 17 Feb 2022 11:23:27 +0100 Subject: [PATCH] fix(invoice): prevent report empty pages --- print/templates/reports/invoice/assets/css/style.css | 9 ++++++--- print/templates/reports/invoice/invoice.html | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/print/templates/reports/invoice/assets/css/style.css b/print/templates/reports/invoice/assets/css/style.css index cd605db9bc..9fda2a6138 100644 --- a/print/templates/reports/invoice/assets/css/style.css +++ b/print/templates/reports/invoice/assets/css/style.css @@ -5,7 +5,7 @@ h2 { .table-title { margin-bottom: 15px; - font-size: 0.8rem + font-size: .8rem } .table-title h2 { @@ -16,9 +16,12 @@ h2 { font-size: 22px } + #nickname h2 { - max-width: 400px; - word-wrap: break-word + max-width: 400px; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; } #phytosanitary { diff --git a/print/templates/reports/invoice/invoice.html b/print/templates/reports/invoice/invoice.html index 8b13f2a157..1d646a0db9 100644 --- a/print/templates/reports/invoice/invoice.html +++ b/print/templates/reports/invoice/invoice.html @@ -85,7 +85,7 @@ -
+

{{$t('deliveryNote')}}