From 1adf64584e85c97529308a2c9af047fdc55a569a Mon Sep 17 00:00:00 2001 From: nsemets Date: Sat, 27 Sep 2025 18:42:09 +0300 Subject: [PATCH] fix(responsive): fixed bug --- .../contributors-dialog.component.html | 4 +-- .../features/metadata/metadata.component.ts | 32 +++++++++---------- .../resource-card.component.html | 2 +- 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html b/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html index 3953d23fa..247ac204d 100644 --- a/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html +++ b/src/app/features/metadata/dialogs/contributors-dialog/contributors-dialog.component.html @@ -1,7 +1,5 @@
-
-

{{ 'project.contributors.addContributor' | translate }}

- +
@if (isCurrentUserAdminContributor()) { !!result)).subscribe({ - next: () => { + this.dialogService + .open(ContributorsDialogComponent, { + header: this.translateService.instant('project.metadata.contributors.editContributors'), + focusOnShow: false, + closeOnEscape: true, + modal: true, + closable: true, + breakpoints: { '768px': '95vw' }, + data: { + resourceId: this.resourceId, + resourceType: this.resourceType(), + }, + }) + .onClose.pipe(filter((result) => !!result)) + .subscribe(() => { this.actions.getResourceMetadata(this.resourceId, this.resourceType()); this.toastService.showSuccess('project.metadata.contributors.updateSucceed'); - }, - }); + }); } openEditTitleDialog(): void { diff --git a/src/app/shared/components/resource-card/resource-card.component.html b/src/app/shared/components/resource-card/resource-card.component.html index d5616934f..dbe1167bf 100644 --- a/src/app/shared/components/resource-card/resource-card.component.html +++ b/src/app/shared/components/resource-card/resource-card.component.html @@ -48,7 +48,7 @@

{{ 'resourceCard.labels.from' | translate }}