From: Galen Charlton Date: Wed, 16 Nov 2022 17:11:22 +0000 (-0500) Subject: LP#1980142: adjust styling of patron message body in Bootstrap OPAC X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=98a5ae9121704f07a13f400c3560c3d79b2e6225;p=evergreen%2Fpines.git LP#1980142: adjust styling of patron message body in Bootstrap OPAC This patch resolves an issue where the text of the message body could be rendered very small due to default styles applied to the
element. In particular, it converts the 
 to a 

and restores a TPAC-era style that ensures that * long lines in the message wrap * but line breaks are also preserved (see LP#1927990) This patch also ensures that the message body is not displayed with label but no contents if the body is empty. To test ------- [1] Create a public patron note that contains line breaks and long lines. [2] Note that in the Bootstrap OPAC message view, the message displays with fixed-width text (that may use a smaller font than the rest of the page) and has a horizontal scrollbar (due to the long line). [3] Apply the patch and look at the message again in the OPAC. This time, the long line should wrap, but line breaks are also preserved. This patch includes a portion of a patch by Garry Collum. Signed-off-by: Galen Charlton Signed-off-by: Mary Llewelln Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/messages/single_message.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/messages/single_message.tt2 index c12475c86b..016d2f5d80 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/messages/single_message.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/messages/single_message.tt2 @@ -35,10 +35,12 @@ [% l("Subject") %] [% ctx.patron_messages.0.title | html %] + [% IF ctx.patron_messages.0.message %]

[% l("Message") %] -
[% ctx.patron_messages.0.message | html %]
+

[% ctx.patron_messages.0.message | html %]

+ [% END %]