From 258fb4faaf98c1c498b885d3081b8455465c155b Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:00:40 +0100 Subject: [PATCH] visual HTML preview improvements --- .../html_formatter/templates/html_template.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/auto_archiver/modules/html_formatter/templates/html_template.html b/src/auto_archiver/modules/html_formatter/templates/html_template.html index 62d6b0b..be4f151 100644 --- a/src/auto_archiver/modules/html_formatter/templates/html_template.html +++ b/src/auto_archiver/modules/html_formatter/templates/html_template.html @@ -12,6 +12,12 @@ font-family: 'Roboto', sans-serif; } + h2 { + white-space: normal; + overflow-wrap: break-word; + word-break: break-word; + } + table { table-layout: fixed; width: 90%; @@ -97,13 +103,17 @@ background-color: #f1f1f1; } - .pem-certificate, .text-preview { + .pem-certificate, + .text-preview { text-align: left; font-size: small; } - .text-preview{ + + .text-preview { padding-left: 10px; padding-right: 10px; + max-height: 300px; + overflow: auto; white-space: pre-wrap; }