From 3e1b3c0d97d606e69e644a48b73c7fdc095ab687 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 19 Oct 2022 16:00:56 +0100 Subject: [PATCH] Bug 31028: Add `wrapfix` class rule to set pre-wrap on content This patch adds a `wrapfix` css class that sets the 'white-space: pre-wrap' rule and applies it to the message content of our catalog concerns allowing multi-line reports to display properly in the table. --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 4 ++++ .../intranet-tmpl/prog/en/modules/cataloguing/concerns.tt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index b9f4ec04ff..7541caae93 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -3450,6 +3450,10 @@ label { white-space: pre-wrap; } +.wrapfix { + white-space: pre-wrap; +} + pre { background-color: transparent; border: 0; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt index 51ec30ff4a..582608b34c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt @@ -155,7 +155,7 @@ { "data": "message:resolution_message", "render": function(data, type, row, meta) { - let result = ''+row.message+''; + let result = ''+row.message+''; if ( row.resolution_message ) { result += ''+_('Resolution: %s').format(row.resolution_message)+''; } -- 2.20.1