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>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
</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"
.cn-template-text {
height: 12em;
width: 100%;
- }
+}
+
+.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;
+}