From 474e3cf86245b6632f4e553404b09446bea31df4 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 1 Jul 2025 18:17:31 -0600 Subject: [PATCH] Bug 40288 - constrain patron brief info in patron sidebar to parent width Content-Type: text/plain; charset="utf-8" The patron info in the patron / circ-menu sidebar is not constrained to it's parent's width. I found this with a very long email address, where the ul grew to match the email address length, and the patron image container also grew. Both overflowed the sidebar. Test plan: 1. find or make a patron with a very long email address (more tha 50 characters). 2. open the patron details page for that patron. Observe the patron image and patron details overflows the patron sidebar (the email address will be hidden under the contact information panel. 3. Apply patch and rebuild css files 4. open the patron details page for that patron again. Observe the patron image and details does not overflow the patron sidebar. --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 5 +++++ koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- 2 files changed, 6 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 5798abfd15..1bcfe44416 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1878,6 +1878,11 @@ li { } } +.patronbriefinfo-container { + width: inherit; + max-width: 230px; +} + .patronbriefinfo { li { &.email { diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 9eb6432712..73a6eb6a28 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -60,7 +60,7 @@ [% END # /IF patronimages %] -
+
    [% IF patron.pronouns %]
  • ([% patron.pronouns | html %])
  • -- 2.43.0