diff --git a/Elwig/Documents/BusinessDocument.cs b/Elwig/Documents/BusinessDocument.cs index 5351ae9..04820cc 100644 --- a/Elwig/Documents/BusinessDocument.cs +++ b/Elwig/Documents/BusinessDocument.cs @@ -77,7 +77,7 @@ namespace Elwig.Documents { tbl += "<tr class=\"sum\"><td></td>" + string.Join("", totals.Select(v => $"<td class=\"number\">{v:N0}</td>")) + $"<td class=\"number\">{totalDict.Values.Sum():N0}</td></tr>"; - return "<table class=\"small number cohere\">" + tbl + "</table>"; + return "<table class=\"sortenaufteilung small number cohere\">" + tbl + "</table>"; } private static string FormatRow(int obligation, int right, int delivery, int? payment = null, bool isGa = false, bool showPayment = false) { @@ -154,7 +154,7 @@ namespace Elwig.Documents { } tbl += "\n</tbody>\n"; - return $"<table class=\"{(isTiny ? "tiny" : "small")} number cohere\">\n" + tbl + "\n</table>"; + return $"<table class=\"buckets {(isTiny ? "tiny" : "small")} number cohere\">\n" + tbl + "\n</table>"; } } } diff --git a/Elwig/Documents/DeliveryConfirmation.css b/Elwig/Documents/DeliveryConfirmation.css index 9a6a332..eb356e3 100644 --- a/Elwig/Documents/DeliveryConfirmation.css +++ b/Elwig/Documents/DeliveryConfirmation.css @@ -22,3 +22,11 @@ table.delivery-confirmation tr.sum { table.delivery-confirmation tr.sum td { padding-top: 1mm; } + +table.sortenaufteilung { + break-after: avoid; +} + +table.buckets { + break-before: avoid; +}