diff --git a/apps/red-ui/src/app/modules/dossier-overview/screen/dossier-overview-screen.component.html b/apps/red-ui/src/app/modules/dossier-overview/screen/dossier-overview-screen.component.html
index 63002d513..7317dccec 100644
--- a/apps/red-ui/src/app/modules/dossier-overview/screen/dossier-overview-screen.component.html
+++ b/apps/red-ui/src/app/modules/dossier-overview/screen/dossier-overview-screen.component.html
@@ -56,7 +56,7 @@
-
+
{{ 'file-preview.tabs.annotations.the-filters' | translate }}
- } @else if (state.componentReferenceIds?.length === 0) {
+ } @else if (state.componentReferenceIds()?.length === 0) {
{{ 'file-preview.tabs.annotations.no-annotations' | translate }}
}
}
diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.scss b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.scss
index 78536d529..30ce46369 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.scss
+++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.scss
@@ -23,6 +23,7 @@
}
.annotations-wrapper {
+ background-color: white;
display: flex;
flex: 1;
overflow: hidden;
@@ -45,6 +46,7 @@
&.documine-width {
width: calc(var(--documine-workload-content-width) - 55px);
border-right: 1px solid var(--iqser-separator);
+ background: white;
z-index: 1;
.workload-separator {
diff --git a/apps/red-ui/src/app/modules/file-preview/components/structured-component-management/structured-component-management.component.scss b/apps/red-ui/src/app/modules/file-preview/components/structured-component-management/structured-component-management.component.scss
index ffc3f5364..c99b62a2b 100644
--- a/apps/red-ui/src/app/modules/file-preview/components/structured-component-management/structured-component-management.component.scss
+++ b/apps/red-ui/src/app/modules/file-preview/components/structured-component-management/structured-component-management.component.scss
@@ -23,6 +23,7 @@ mat-icon {
}
.components-container {
+ background: white;
display: flex;
flex-direction: column;
font-size: 12px;
diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html
index 41b9e50a3..b9223722d 100644
--- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html
+++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.html
@@ -11,7 +11,19 @@
[dictionaries]="state.dictionaries"
>
-
+ @if (isDocumine) {
+
+ }
+
('resize');
protected readonly isDocumine = getConfig().IS_DOCUMINE;
@ViewChild('annotationFilterTemplate', {
read: TemplateRef,
@@ -243,6 +237,32 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
);
}
+ onDragStart(event: CdkDragStart) {
+ event.event.preventDefault();
+ if (!this.isDocumine) return;
+ const contentInnerElement = document.body.getElementsByClassName('content-inner').item(0) as HTMLElement;
+ if (contentInnerElement) {
+ contentInnerElement.classList.add('dragging');
+ }
+ }
+
+ onDragMove(event: CdkDragMove) {
+ if (!this.isDocumine) return;
+ const e = event.event as MouseEvent;
+ const newLeftWidth = `${this.#getPixelsInPercentage(e.clientX - this.resizeHandle().nativeElement.style.width / 2)}%`;
+ document.body.style.setProperty('--structured-component-management-width', newLeftWidth);
+ this.resizeHandle().nativeElement.style.transform = 'none';
+ }
+
+ onDragEnd(event: CdkDragEnd) {
+ event.event.preventDefault();
+ if (!this.isDocumine) return;
+ const contentInnerElement = document.body.getElementsByClassName('content-inner').item(0) as HTMLElement;
+ if (contentInnerElement) {
+ contentInnerElement.classList.remove('dragging');
+ }
+ }
+
deleteEarmarksOnViewChange$() {
const isChangingFromEarmarksViewMode$ = this._viewModeService.viewMode$.pipe(
pairwise(),
@@ -430,6 +450,10 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
);
}
+ #getPixelsInPercentage(pixels: number) {
+ return (pixels / window.screen.width) * 100;
+ }
+
async #updateViewMode(): Promise {
const viewMode = untracked(this._viewModeService.viewMode);
this._logger.info(`[PDF] Update ${viewMode} view mode`);
diff --git a/libs/common-ui b/libs/common-ui
index ae0eebcc6..72e760fff 160000
--- a/libs/common-ui
+++ b/libs/common-ui
@@ -1 +1 @@
-Subproject commit ae0eebcc6feceba4fe5c930d79eadd9b9a60b7e9
+Subproject commit 72e760fff8bc1adb72969b1e6e6971cdb88d55fe