File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed
dialogs/contributors-dialog
shared/components/resource-card Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 11< div class ="contributors-dialog flex flex-column gap-4 ">
2- < div class ="flex justify-content-between align-items-center ">
3- < h3 > {{ 'project.contributors.addContributor' | translate }}</ h3 >
4-
2+ < div class ="flex justify-content-end align-items-center ">
53 @if (isCurrentUserAdminContributor()) {
64 < p-button
75 [label] ="'project.contributors.addContributor' | translate "
Original file line number Diff line number Diff line change @@ -326,24 +326,24 @@ export class MetadataComponent implements OnInit {
326326 }
327327
328328 openEditContributorDialog ( ) : void {
329- const dialogRef = this . dialogService . open ( ContributorsDialogComponent , {
330- width : '800px' ,
331- header : this . translateService . instant ( 'project.metadata.contributors.editContributors' ) ,
332- focusOnShow : false ,
333- closeOnEscape : true ,
334- modal : true ,
335- closable : true ,
336- data : {
337- resourceId : this . resourceId ,
338- resourceType : this . resourceType ( ) ,
339- } ,
340- } ) ;
341- dialogRef . onClose . pipe ( filter ( ( result ) => ! ! result ) ) . subscribe ( {
342- next : ( ) => {
329+ this . dialogService
330+ . open ( ContributorsDialogComponent , {
331+ header : this . translateService . instant ( 'project.metadata.contributors.editContributors' ) ,
332+ focusOnShow : false ,
333+ closeOnEscape : true ,
334+ modal : true ,
335+ closable : true ,
336+ breakpoints : { '768px' : '95vw' } ,
337+ data : {
338+ resourceId : this . resourceId ,
339+ resourceType : this . resourceType ( ) ,
340+ } ,
341+ } )
342+ . onClose . pipe ( filter ( ( result ) => ! ! result ) )
343+ . subscribe ( ( ) => {
343344 this . actions . getResourceMetadata ( this . resourceId , this . resourceType ( ) ) ;
344345 this . toastService . showSuccess ( 'project.metadata.contributors.updateSucceed' ) ;
345- } ,
346- } ) ;
346+ } ) ;
347347 }
348348
349349 openEditTitleDialog ( ) : void {
Original file line number Diff line number Diff line change 4848 < div class ="flex flex-row gap-1 line-height-3 ">
4949 < p class ="white-space-nowrap "> {{ 'resourceCard.labels.from' | translate }}</ p >
5050 < a
51- class ="white-space-normal "
51+ class ="white-space-normal word-break-word "
5252 [href] ="resource().isPartOf!.absoluteUrl "
5353 target ="_blank "
5454 rel ="noopener noreferrer "
You can’t perform that action at this time.
0 commit comments