From 121577f090fcb7b770426fd0e066e1e50b0ea507 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Mon, 5 Oct 2026 14:04:40 -0400 Subject: [PATCH] webapp: wrap destruction notes instead of widening the table The theme sets white-space: nowrap on every table cell, so the ServiceNow tick list's destruction note (and the to-do failure column) ran as one line and pushed the Done buttons off to the right. A td.wrap utility lets prose cells wrap within 16-28rem. --- webapp/static/pxe-theme.css | 9 +++++++++ webapp/templates/reports_servicenow.html | 2 +- webapp/templates/reports_todo.html | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/webapp/static/pxe-theme.css b/webapp/static/pxe-theme.css index dac101a..caf37c5 100644 --- a/webapp/static/pxe-theme.css +++ b/webapp/static/pxe-theme.css @@ -496,6 +496,15 @@ table.table, border-top: 1px solid var(--border); color: var(--text); } +/* Cells holding prose (e.g. destruction notes) wrap instead of widening + the table; every other cell stays nowrap. */ +.data-table td.wrap { + white-space: normal; + min-width: 16rem; + max-width: 28rem; + overflow-wrap: anywhere; +} + .data-table tbody tr:hover, .table tbody tr:hover { background: rgba(65, 129, 255, 0.1); } diff --git a/webapp/templates/reports_servicenow.html b/webapp/templates/reports_servicenow.html index 1d771ab..3b13c8b 100644 --- a/webapp/templates/reports_servicenow.html +++ b/webapp/templates/reports_servicenow.html @@ -53,7 +53,7 @@ {% if it.failed %}Blancco Wipe failed {% else %}Wiped{% endif %} - + {% if it.note %}
{{ it.note }}
diff --git a/webapp/templates/reports_todo.html b/webapp/templates/reports_todo.html index e1f5f9a..905458c 100644 --- a/webapp/templates/reports_todo.html +++ b/webapp/templates/reports_todo.html @@ -69,7 +69,7 @@ {{ it.serial or '-' }} {{ it.model or '-' }} {{ it.when.strftime('%Y-%m-%d %H:%M') }} - {{ it.note }} + {{ it.note }} Report