LP1739293 Record merge fits container
authorBill Erickson <berickxx@gmail.com>
Tue, 5 Mar 2019 16:10:44 +0000 (11:10 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 5 Mar 2019 16:10:46 +0000 (11:10 -0500)
Allow the text contents of each merged MARC record to wrap so the
records may fit horizontally on the screen.  A single vertical scroll
allows the user to scroll down to see any parts of the record that
require more vertical space.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/cat/bucket/record/t_merge_records.tt2
Open-ILS/src/templates/staff/css/cat.css.tt2

index da038b6..426b2bb 100644 (file)
@@ -52,7 +52,7 @@
             </tab>
           </tabset>
         </div>
-        <div class="flex-1" ng-repeat="rec in records">
+        <div class="record-merge-container" ng-repeat="rec in records">
           <button class="btn btn-default btn-sm" 
             ng-click="use_as_lead(rec)">[% l('Use as lead record') %]</button>
           <button class="btn btn-default btn-sm" 
index 9af6bd7..0ea927a 100644 (file)
@@ -198,3 +198,22 @@ grid[name="-none-"] * label { color: black; }
     white-space: nowrap;
 }
 
+.record-merge-container {
+  flex: 1;
+  max-height: 600px;
+  /*
+   * LP1739293 Leaving for reference in case anyone wants to allow the
+   * marc records to occupy more horizontal space and/or put scroll bars
+   * on the individual records instead of a single vertical scroll.
+  min-width: 600px;
+  max-width: 900px;
+  overflow-y: scroll;
+  */
+}
+
+.record-merge-container pre {
+  /* in the merge view, wrap text so it doesn't gobble up 
+   * all of the horizontal space */
+  white-space: pre-wrap;
+}
+