From b4050132c8da6839c6134f23e1ae89fab577ed00 Mon Sep 17 00:00:00 2001 From: minottic Date: Thu, 18 Apr 2024 13:19:18 +0200 Subject: [PATCH] Override table width when set in textcontent --- sci-log-db/src/services/pdf.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sci-log-db/src/services/pdf.css b/sci-log-db/src/services/pdf.css index 8f22e891..150437f9 100644 --- a/sci-log-db/src/services/pdf.css +++ b/sci-log-db/src/services/pdf.css @@ -103,27 +103,33 @@ h1 { @page landscape { size: A4 landscape; - margin-right: -50px; - margin-left: -50px; + margin-right: -40px; + margin-left: -40px; margin-top: 0; margin-bottom: 0; } +table { + min-width: 180mm; +} + .table-landscape, table, th, td { table-layout: fixed; font-size: 10pt; - width: 100%; border-spacing: 0; border-collapse: collapse; border: 1px solid black; word-wrap: break-word; + width: auto; } .table-landscape { page: landscape; + min-width: 270mm; + width: auto; } .table-with-space::after {