diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index 6ba926b57..43faa3885 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -158,8 +158,9 @@
-
+
+ @if (previewDocId) { +
+ + of {{ previewPageCount() ?? '?' }} +
+
+ + + +
+ }
-
+
@if (pageFailed()) { }
- @if (previewDocId && !pageFailed()) { -
-
- - - -
- - of {{ previewPageCount() ?? '?' }} -
-
- - - -
-
-
- }
diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss index eba0fe5ce..913a5c73f 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.scss @@ -22,10 +22,6 @@ min-width: 4rem; } -.cdk-drag-handle { - cursor: move; -} - .zone-overlay { touch-action: none; } diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts index c7434876e..2edda7b19 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts @@ -1,4 +1,3 @@ -import { DragDropModule } from '@angular/cdk/drag-drop' import { CommonModule } from '@angular/common' import { Component, @@ -126,7 +125,6 @@ const RESIZE_CURSOR: Record = { @Component({ selector: 'pngx-ocr-template-editor', imports: [ - DragDropModule, DocumentLinkComponent, NumberComponent, TextComponent,