LP1739293 Record merged edit-in-place avoid wrap user/berick/lp1739293-rec-merge-horizontal
authorBill Erickson <berickxx@gmail.com>
Tue, 5 Mar 2019 16:53:09 +0000 (11:53 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 5 Mar 2019 16:53:12 +0000 (11:53 -0500)
When using the inline editor, prevent text wrapping and instead allow
the text to overflow x and y and use scrolls to navigate.

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 426b2bb..1a5ee26 100644 (file)
@@ -33,7 +33,8 @@
       </div>
 
       <div class="flex-row" style="overflow:scroll">
-        <div ng-if="lead_id" class="flex-1">
+        <div ng-if="lead_id" 
+          ng-class="{'record-merge-container': !editing_inplace, 'record-edit-container': editing_inplace}">
           <tabset>
             <tab heading="[% l('Bib [_1]', '{{lead_id}}') %]">
               <button class="btn btn-default btn-sm" ng-class="{disabled : editing_inplace}" 
index 0ea927a..d517d5b 100644 (file)
@@ -217,3 +217,11 @@ grid[name="-none-"] * label { color: black; }
   white-space: pre-wrap;
 }
 
+/* Avoid word wrapping in edit mode and add scrolls for navigation */
+.record-edit-container {
+  flex: 1;
+  overflow-x: scroll;
+  overflow-y: scroll;
+  white-space: nowrap;
+}
+