From 2e4d8faf5ee081f9eeb4f0b1d93e7f2c8a39434c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernst=20W=C3=BCrger?= Date: Thu, 23 May 2024 16:57:05 +0200 Subject: [PATCH] fix: Fix tables and images --- .../sbb-pdf-exporter/DBS Stylesheet.css | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/extensions/sbb-pdf-exporter/DBS Stylesheet.css b/extensions/sbb-pdf-exporter/DBS Stylesheet.css index 4751e42..dd956df 100644 --- a/extensions/sbb-pdf-exporter/DBS Stylesheet.css +++ b/extensions/sbb-pdf-exporter/DBS Stylesheet.css @@ -78,16 +78,6 @@ content: none; display: none; } - - table:first-of-type { - width: 100%; - table-layout: fixed; - } - - table:first-of-type td { - width: 50% !important; - overflow: hidden; - } } @page { @@ -97,31 +87,37 @@ @top-left { content: element(top-left); display: none; + padding-bottom: -25px; } @top-center { content: element(top-center); width: 100%; + padding-bottom: -25px; } @top-right { content: element(top-right); display: none; + padding-bottom: -25px; } @bottom-left { content: element(bottom-left); display: none; + padding-top: 25px; } @bottom-center { content: element(bottom-center); width: 100%; + padding-top: 25px; } @bottom-right { content: element(bottom-right); display: none; + padding-top: 25px; } } @@ -194,6 +190,16 @@ break-after: avoid; } + /* + table:first-of-type { + table-layout: fixed !important; + } + + table:first-of-type td { + width: 50% !important; + overflow: hidden; + }*/ + table { width: 100%; table-layout: auto; @@ -253,6 +259,9 @@ ol { } a { + max-width: 100%; + height: auto; + display: block; text-decoration: none; color: #197FA2; } @@ -280,6 +289,10 @@ td>a { display: block; } +td>a>img { + width: 100% !important; +} + .header, .footer { display: none;