summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-10-08 09:46:18 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-10-08 09:47:35 +0200
commit75cd6d98833075cd9aeaddd5f5a95b870ff246ac (patch)
treeeb03d70a66e9f0350bda004356a2902853bec830
parent6af4330016f2e70abd79f08b73bf54aa85f8e591 (diff)
tempates: fix System log layout to prevent overflowv1.1.3-32
Restrict the <pre> component where the logs are contained to prevent text overflow from happening.
-rw-r--r--ogcp/templates/actions/legacy/log.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ogcp/templates/actions/legacy/log.html b/ogcp/templates/actions/legacy/log.html
index 5df0e62..a3f252c 100644
--- a/ogcp/templates/actions/legacy/log.html
+++ b/ogcp/templates/actions/legacy/log.html
@@ -10,6 +10,16 @@
<h2 class="mx-5 subhead-heading">{{_('Client log')}}</h2>
+<style>
+ /* Prevent overflow */
+ pre {
+ max-width: 100%;
+ overflow: auto;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ }
+</style>
+
<pre>{{ log }}</pre>
{% endblock %}