+
diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss
index 6817bb6ea..36304a969 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss
+++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.scss
@@ -67,3 +67,9 @@
}
}
}
+
+.hide-comments {
+ margin-top: 5px;
+ margin-bottom: 8px;
+ padding-left: 26px;
+}
diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts
index ce271befd..3b2c9775c 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts
+++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.ts
@@ -13,12 +13,13 @@ import { ActionsHelpModeKeys } from '../../utils/constants';
})
export class AnnotationWrapperComponent implements OnChanges {
readonly #isDocumine = getConfig().IS_DOCUMINE;
- protected readonly _pdfProxyService = inject(PdfProxyService);
- protected readonly _multiSelectService = inject(MultiSelectService);
+ protected readonly pdfProxyService = inject(PdfProxyService);
+ protected readonly multiSelectService = inject(MultiSelectService);
@Input({ required: true }) annotation!: ListItem
;
@HostBinding('attr.annotation-id') annotationId: string;
@HostBinding('class.active') active = false;
actionsHelpModeKey?: string;
+ showComments = false;
ngOnChanges() {
this.annotationId = this.annotation.item.id;
@@ -28,12 +29,12 @@ export class AnnotationWrapperComponent implements OnChanges {
#getActionsHelpModeKey(): string {
if (!this.#isDocumine) {
- const type = this.annotation.item.typeLabel?.split('.')[1];
- const typeValue = this.annotation.item.typeValue;
- if (type === 'hint' && (typeValue === 'ocr' || typeValue === 'formula' || typeValue === 'image')) {
- return ActionsHelpModeKeys[`${type}-${typeValue}`];
+ const superType = this.annotation.item.superTypeLabel?.split('.')[1];
+ const type = this.annotation.item.type;
+ if (superType === 'hint' && (type === 'ocr' || type === 'formula' || type === 'image')) {
+ return ActionsHelpModeKeys[`${superType}-${type}`];
}
- return ActionsHelpModeKeys[type];
+ return ActionsHelpModeKeys[superType];
}
return '';
}
diff --git a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html
index 3b7c4a0a2..833094349 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html
+++ b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html
@@ -1,39 +1,30 @@
-
-