LP1739293 Record merged edit-in-place avoid wrap
authorBill Erickson <berickxx@gmail.com>
Tue, 5 Mar 2019 16:53:09 +0000 (11:53 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 13 Mar 2019 21:13:08 +0000 (17:13 -0400)
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>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>

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 9d04e00..cbbdfba 100644 (file)
@@ -281,3 +281,11 @@ table.custom-label-table td {
   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;
+}
+