From 599a8890e4d95cb53c89304527d7e7740f73ca3b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 Oct 2025 11:55:45 +0200 Subject: [PATCH] Bug 40931: (bug 39533 follow-up) Isolate CSS changes to prevent side-effects The changes made on bug 39533 for the export page have affected other instance of select2. eg. on the "place holds" view the select2 elements are too narrow. This patch suggests to isolate the CSS changes so they will only affect the export page. Test plan: Confirm that this patch does not affect the display of the select2 elements from the export page. Confirm that the pickup locations are wider (and their values are displayed) when placing multi holds --- koha-tmpl/intranet-tmpl/prog/css/select2.css | 10 ---------- .../intranet-tmpl/prog/en/modules/tools/export.tt | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/select2.css b/koha-tmpl/intranet-tmpl/prog/css/select2.css index 8733a8b5913..89915eccd3f 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/select2.css +++ b/koha-tmpl/intranet-tmpl/prog/css/select2.css @@ -49,13 +49,3 @@ clear: none; width: auto; } - -.select2.select2-container.select2-container--default { - flex-grow: 1; - max-width: 60%; -} - -fieldset.rows .select2 li { - clear: none; - width: unset; -} diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt index 10afc5c9be6..14621bcccec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt @@ -16,6 +16,16 @@ fieldset.rows li { display: flex; } + + .select2.select2-container.select2-container--default { + flex-grow: 1; + max-width: 60%; + } + + fieldset.rows .select2 li { + clear: none; + width: unset; + } -- 2.34.1