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 1
1
< 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 ">
5
3
@if (isCurrentUserAdminContributor()) {
6
4
< p-button
7
5
[label] ="'project.contributors.addContributor' | translate "
Original file line number Diff line number Diff line change @@ -326,24 +326,24 @@ export class MetadataComponent implements OnInit {
326
326
}
327
327
328
328
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 ( ( ) => {
343
344
this . actions . getResourceMetadata ( this . resourceId , this . resourceType ( ) ) ;
344
345
this . toastService . showSuccess ( 'project.metadata.contributors.updateSucceed' ) ;
345
- } ,
346
- } ) ;
346
+ } ) ;
347
347
}
348
348
349
349
openEditTitleDialog ( ) : void {
Original file line number Diff line number Diff line change 48
48
< div class ="flex flex-row gap-1 line-height-3 ">
49
49
< p class ="white-space-nowrap "> {{ 'resourceCard.labels.from' | translate }}</ p >
50
50
< a
51
- class ="white-space-normal "
51
+ class ="white-space-normal word-break-word "
52
52
[href] ="resource().isPartOf!.absoluteUrl "
53
53
target ="_blank "
54
54
rel ="noopener noreferrer "
You can’t perform that action at this time.
0 commit comments