From b9cc71aeba691a66f75779eb8c740ce3b10c6247 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 6 Jul 2020 12:59:16 +0200 Subject: [PATCH] There's no way to prevent tbody page-break --- print/common/css/layout.css | 41 ++++++++++--------------------------- 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/print/common/css/layout.css b/print/common/css/layout.css index 3768fb8ea..3b2643dc9 100644 --- a/print/common/css/layout.css +++ b/print/common/css/layout.css @@ -157,32 +157,6 @@ table { border-spacing: 0; } -thead { - display: table-header-group -} - -/** - * Prevent page break fix - */ -tbody { - page-break-inside: avoid; - break-inside: avoid; - display: block -} - -tbody tr { - table-layout: fixed; - display: table -} - -thead, tbody, tbody tr { - width: 100%; -} - -tfoot { - display: block -} - .row-oriented, .column-oriented { text-align: left; width: 100% @@ -198,6 +172,7 @@ tfoot { } .column-oriented thead { + display: table-header-group; background-color: #e5e5e5 } @@ -207,18 +182,24 @@ tfoot { background-color: #e5e5e5 } +.column-oriented tfoot { + display: table-row-group; + page-break-inside: avoid; + break-inside: avoid; +} + .column-oriented tbody { border-bottom: 1px solid #DDD; } -.column-oriented tfoot { - border-top: 2px solid #808080; -} - .column-oriented tfoot tr:first-child td { padding-top: 20px !important; } +.column-oriented tfoot tr:first-child { + border-top: 2px solid #808080; +} + .column-oriented .description { font-size: 0.8em }