From a3b1397c6f002ebe4bd2492d426dec8346de850c Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 6 Dec 2018 14:55:10 -0800 Subject: [PATCH] LP1527756: Patron summary should scroll separately from patron search results To test: 1) Without this patch, do a patron search with a lot of results in a browser window that is not very tall on a laptop or desktop computer. 2) Click on a search result. 3) Scroll down. Note that the patron summary on the left side of the screen also scrolls down at the same time. 4) Apply this commit. 5) Repeat steps 1-3. Note that the patron summary has a separate scrollbar and does not scroll along with the right side of the screen. 6) Confirm that the behavior you saw in step 5 is true across all of the patron record tabs (e.g. Check Out, Items Out). Signed-off-by: Jane Sandberg --- .../src/templates/staff/circ/patron/t_summary.tt2 | 54 +++++++++++----------- Open-ILS/src/templates/staff/css/circ.css.tt2 | 18 ++++++++ 2 files changed, 45 insertions(+), 27 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 index 11cf06a2b3..45a63ea21b 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -177,34 +177,34 @@
[% l('Name Keywords') %]
{{patron().name_keywords()}}
- -
-
-
-
- - {{addr.address_type()}} - ([%- l('copy') -%][%- l('/print') -%]) - -
{{addr.street1()}} {{addr.street2()}}
-
{{addr.city()}}, {{addr.state()}} {{addr.post_code()}}
-
- +
+
+
+
+ + {{addr.address_type()}} + ([%- l('copy') -%][%- l('/print') -%]) + +
{{addr.street1()}} {{addr.street2()}}
+
{{addr.city()}}, {{addr.state()}} {{addr.post_code()}}
+
+ +
diff --git a/Open-ILS/src/templates/staff/css/circ.css.tt2 b/Open-ILS/src/templates/staff/css/circ.css.tt2 index 798117ebad..b2a9c3f382 100644 --- a/Open-ILS/src/templates/staff/css/circ.css.tt2 +++ b/Open-ILS/src/templates/staff/css/circ.css.tt2 @@ -89,6 +89,24 @@ but the ones I'm finding aren't quite cutting it..*/ border-bottom: 1px solid #CCC; } +/* -- patron summary scrolls separately -- */ + +@media (min-width: 992px) and (max-width: 1120px) { + #patron-summary-grid { + width: 210px; + } +} + +@media (min-width: 992px) { + #patron-summary-grid { + overflow-y: scroll; + height: 80vh; + } + .patron-summary-grid-wrapper { + position: fixed; + } +} + /* -- patron registration -- */ /* make all input widgets the same width, i.e. fill their column */ -- 2.11.0