@if (previewStatus === 'error') {
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 a0c7efa42..f4822622b 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
@@ -4,8 +4,14 @@
min-height: 0;
}
-.zone-preview-scroll {
- max-height: 78vh;
+@media (min-width: 992px) {
+ .modal-body {
+ overflow: hidden;
+ }
+
+ .editor-layout {
+ min-height: 0;
+ }
}
.preview-page-input {
diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.ts
index bf7910b17..bc9934e0b 100644
--- a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.ts
+++ b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.ts
@@ -83,7 +83,7 @@ export class OcrTemplatesComponent
const modal = this.modalService.open(OcrTemplateEditorComponent, {
backdrop: 'static',
keyboard: false,
- size: 'xl',
+ size: 'xxl',
fullscreen: 'lg',
scrollable: true,
ariaLabelledBy: 'ocr-template-editor-title',
diff --git a/src-ui/src/styles.scss b/src-ui/src/styles.scss
index c135d343b..02e7a89ed 100644
--- a/src-ui/src/styles.scss
+++ b/src-ui/src/styles.scss
@@ -690,6 +690,12 @@ table.table {
}
}
+@media (min-width: 992px) {
+ .modal-xxl {
+ --bs-modal-width: min(1440px, calc(100vw - 2 * var(--bs-modal-margin)));
+ }
+}
+
.toast {
--bs-toast-max-width: var(--pngx-toast-max-width);
}