From bb11676eb5e8a09f69cbcbd2d7f8365092f8cf37 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Nov 2019 12:36:34 -0500 Subject: [PATCH] LPXXX editor continued Signed-off-by: Bill Erickson --- .../eg2/src/app/staff/share/marc-edit/editable-content.component.css | 5 +++++ .../eg2/src/app/staff/share/marc-edit/editable-content.component.ts | 4 ---- .../src/eg2/src/app/staff/share/marc-edit/rich-editor.component.html | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.css b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.css index 53d10110fc..1206312a6d 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.css +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.css @@ -7,3 +7,8 @@ div[contenteditable] { /* match BS form-control input height */ min-height: calc(1.5em + .75rem + 2px); } + +/* snuggle the delimiter and subfield codes */ +.sf-delimiter { margin-right: -0.4rem; } +.sf-code { margin-left: -0.4rem; } + diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts index 17f2a4d967..1c3cc11174 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts @@ -244,8 +244,6 @@ export class EditableContentComponent implements OnInit, AfterViewInit { this.context.record.cloneField(this.field) ); - } else { - const field = this.record.getNextField(this.field.fieldId); if (field) { this.context.requestFieldFocus( @@ -267,8 +265,6 @@ export class EditableContentComponent implements OnInit, AfterViewInit { this.context.record.cloneField(this.field) ); - } else { - const field = this.record.getPreviousField(this.field.fieldId); if (field) { this.context.requestFieldFocus( diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/rich-editor.component.html b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/rich-editor.component.html index df70af04f5..b14628ef75 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/rich-editor.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/rich-editor.component.html @@ -55,13 +55,13 @@ + moreClasses="sf-delimiter text-primary border-right-0 bg-transparent"> + moreClasses="sf-code text-primary border-left-0"> -- 2.11.0