From 1254e508137d3c9753040298495041ab02a6ebc5 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 6 Mar 2024 23:44:08 +0000 Subject: [PATCH] Bug 35862: Display modal search results to the right of form above 1200px To test: 1. Apply patch 2. Rebuild CSS ( yarn build ) 3. Look at some of the places where there is a modal patron search. -suggestion/suggestion.pl: Set to patron -members/memberentry.pl: Add guarantor 4. Make sure the modal looks good before and after you have searched for a patron. 5. Play with many different screen sizes, ensuring everything looks good and makes sense. Signed-off-by: Martin Renvoize --- .../prog/css/src/staff-global.scss | 20 ++++ .../prog/en/includes/patron-search.inc | 102 ++++++++---------- 2 files changed, 66 insertions(+), 56 deletions(-) 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 bde56089180..a023ec054dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -2407,6 +2407,17 @@ td.bundle { pointer-events: auto; } +.patron_search_modal { + .modal-body { + display: flex; + column-gap: 2em; + } + + .search_results_block { + flex-grow: 1; + } +} + #cartDetails { background-color: #352C2E; box-shadow: 1px 1px 3px 0 #666; @@ -4831,3 +4842,12 @@ div .suggestion_note { border-bottom-right-radius: 5px; } } + + +@media only screen and ( max-width: 1200px ) { + .patron_search_modal { + .modal-body { + display: block; + } + } +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index c481838b213..0b729d02acc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -29,23 +29,21 @@ [%# - search_type: select 'contains' or 'starts with' %] [%- searchtype = searchtype || Koha.Preference('DefaultPatronSearchMethod') -%] [% BLOCK patron_search_filters %] -
-
-

Search for patron

-
    -
  1. -
+
+ + +
- -
+ + [% END %] [%# Display the table with: %] @@ -924,7 +914,7 @@ [% search_results_block_id = patron_search_modal_id _ '_searchresults' %] -