diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index fa74b8195..add4c23ae 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -97,6 +97,7 @@ import { PdfViewerScreenComponent } from './screens/pdf-viewer-screen/pdf-viewer import { HtmlDebugScreenComponent } from './screens/html-debug-screen/html-debug-screen.component'; import { ReportDownloadBtnComponent } from './components/buttons/report-download-btn/report-download-btn.component'; import { ProjectListingActionsComponent } from './screens/project-listing-screen/project-listing-actions/project-listing-actions.component'; +import { HasScrollbarDirective } from './utils/has-scrollbar.directive'; export function HttpLoaderFactory(httpClient: HttpClient) { return new TranslateHttpLoader(httpClient, '/assets/i18n/', '.json'); @@ -280,6 +281,7 @@ const matImports = [ ChevronButtonComponent, DictionaryListingScreenComponent, SyncWidthDirective, + HasScrollbarDirective, AddEditDictionaryDialogComponent, DictionaryOverviewScreenComponent, TeamMembersComponent, diff --git a/apps/red-ui/src/app/components/buttons/icon-button/icon-button.component.scss b/apps/red-ui/src/app/components/buttons/icon-button/icon-button.component.scss index 8f44b4566..5f4c4a311 100644 --- a/apps/red-ui/src/app/components/buttons/icon-button/icon-button.component.scss +++ b/apps/red-ui/src/app/components/buttons/icon-button/icon-button.component.scss @@ -5,6 +5,10 @@ button { &.show-bg { background-color: $grey-6; + + &:not(.mat-button-disabled):hover { + background-color: $grey-4; + } } mat-icon { diff --git a/apps/red-ui/src/app/components/comments/comments.component.html b/apps/red-ui/src/app/components/comments/comments.component.html index 12854b686..e1faa0d7b 100644 --- a/apps/red-ui/src/app/components/comments/comments.component.html +++ b/apps/red-ui/src/app/components/comments/comments.component.html @@ -30,7 +30,7 @@
- +
diff --git a/apps/red-ui/src/app/dialogs/add-edit-project-dialog/add-edit-project-dialog.component.html b/apps/red-ui/src/app/dialogs/add-edit-project-dialog/add-edit-project-dialog.component.html index fd0f49496..a5ffd8362 100644 --- a/apps/red-ui/src/app/dialogs/add-edit-project-dialog/add-edit-project-dialog.component.html +++ b/apps/red-ui/src/app/dialogs/add-edit-project-dialog/add-edit-project-dialog.component.html @@ -30,8 +30,7 @@
+
@@ -47,7 +47,9 @@
- +
diff --git a/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts b/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts index 3e3197507..17e3fd101 100644 --- a/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts +++ b/apps/red-ui/src/app/dialogs/manual-redaction-dialog/manual-annotation-dialog.component.ts @@ -31,8 +31,6 @@ export class ManualAnnotationDialogComponent implements OnInit { redactionDictionaries: TypeValue[] = []; legalOptions: LegalBasisOption[] = []; - @ViewChild('textarea') private _textarea: ElementRef; - get title() { return this._manualAnnotationService.getTitle(this.manualRedactionEntryWrapper.type); } @@ -85,10 +83,6 @@ export class ManualAnnotationDialogComponent implements OnInit { this.redactionDictionaries.sort((a, b) => a.label.localeCompare(b.label)); } - public get hasScrollbar() { - return this._textarea?.nativeElement.clientHeight < this._textarea?.nativeElement.scrollHeight; - } - handleAddRedaction() { this._enhanceManualRedaction(this.manualRedactionEntryWrapper.manualRedactionEntry); this._manualAnnotationService.addAnnotation(this.manualRedactionEntryWrapper.manualRedactionEntry).subscribe( diff --git a/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.html b/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.html index 45b1b5915..72b0407d3 100644 --- a/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.html +++ b/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.html @@ -5,15 +5,28 @@
-
-
+ +
+ {{ dictionary.label }} +
+
+ +
+
+ + + +
+ +
+
@@ -41,11 +54,6 @@
-
- - -
-
{{ 'add-edit-dictionary.form.redaction' | translate }} @@ -61,7 +69,9 @@
- +
diff --git a/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.scss b/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.scss index 9bec5b50c..176922a86 100644 --- a/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.scss +++ b/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/add-edit-dictionary-dialog/add-edit-dictionary-dialog.component.scss @@ -4,7 +4,7 @@ display: flex; > *:not(last-child) { - margin-right: 24px; + margin-right: 16px; } .red-input-group { @@ -23,3 +23,7 @@ transition: background-color 0.25s ease; color: $white; } + +.mb-14 { + margin-bottom: 14px; +} diff --git a/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/dictionary-listing-screen.component.html b/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/dictionary-listing-screen.component.html index 59c630664..14ab60446 100644 --- a/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/dictionary-listing-screen.component.html +++ b/apps/red-ui/src/app/screens/admin/dictionary-listing-screen/dictionary-listing-screen.component.html @@ -68,7 +68,7 @@
-
+
{{ currentMatch + '/' + searchPositions.length }}
- +
diff --git a/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.scss b/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.scss index 035108650..28ba1375a 100644 --- a/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.scss +++ b/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.scss @@ -45,7 +45,7 @@ .red-input-group { margin-bottom: 16px; - max-width: 450px; + max-width: 300px; input { padding-right: 32px; diff --git a/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.html b/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.html index 4d3f0e01d..db5068b80 100644 --- a/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.html +++ b/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.html @@ -37,7 +37,7 @@
-
+
diff --git a/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.scss b/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.scss index a31941627..4cb561573 100644 --- a/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.scss +++ b/apps/red-ui/src/app/screens/admin/users/user-listing-screen.component.scss @@ -4,7 +4,7 @@ .grid-container { grid-template-columns: 1fr 1fr 11px; - &:hover { + &.has-scrollbar:hover { grid-template-columns: 1fr 1fr; } diff --git a/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.html b/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.html index 23418b272..152a9d25b 100644 --- a/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.html +++ b/apps/red-ui/src/app/screens/admin/watermark-screen/watermark-screen.component.html @@ -26,9 +26,8 @@