Fix: Missing close button from dialogue window (#1717)
This commit is contained in:
+4
@@ -234,3 +234,7 @@
|
|||||||
::ng-deep .custom-button-padding .p-button {
|
::ng-deep .custom-button-padding .p-button {
|
||||||
padding-block: 0.25rem !important;
|
padding-block: 0.25rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::ng-deep .book-details-dialog .p-dialog-header {
|
||||||
|
padding: 1rem 1.25rem !important;
|
||||||
|
}
|
||||||
|
|||||||
+8
-3
@@ -495,11 +495,16 @@ export class BookCardComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.dialogService.open(BookMetadataCenterComponent, {
|
this.dialogService.open(BookMetadataCenterComponent, {
|
||||||
width: '85%',
|
width: '90%',
|
||||||
data: {bookId: book.id},
|
data: {bookId: book.id},
|
||||||
modal: true,
|
modal: true,
|
||||||
dismissableMask: true,
|
dismissableMask: false,
|
||||||
showHeader: false
|
showHeader: true,
|
||||||
|
closable: true,
|
||||||
|
closeOnEscape: true,
|
||||||
|
maximizable: true,
|
||||||
|
header: 'Book Details',
|
||||||
|
styleClass: 'book-details-dialog'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user