From f083e10d06dd5954c3f6ad5da41420eb6ab83566 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Sun, 19 Apr 2026 17:40:05 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20skal=C3=A9r=20CV=20til=201=20side=20ved?= =?UTF-8?q?=20PDF=20print?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 0f6fbfd..704cb54 100644 --- a/templates/index.html +++ b/templates/index.html @@ -381,8 +381,22 @@ /* Print */ @media print { - body { background: white; padding: 0; } - .cv-wrapper { box-shadow: none; border-radius: 0; max-width: 100%; } + @page { size: A4; margin: 0; } + html, body { background: white; padding: 0; margin: 0; display: block; } + body { + -webkit-print-color-adjust: exact; + print-color-adjust: exact; + } + .cv-wrapper { + box-shadow: none; + border-radius: 0; + width: 100%; + max-width: 100%; + transform-origin: top left; + transform: scale(0.78); + height: 128vh; + overflow: hidden; + } .sidebar { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pdf-btn { display: none; } }