Fix open filters animation

This commit is contained in:
apapachristou 2020-11-10 10:13:08 +02:00
parent bfdbce54c2
commit 6fb7c81cd5
3 changed files with 25 additions and 1 deletions

View File

@ -257,7 +257,8 @@ export class DatasetListingComponent extends BaseComponent implements OnInit, IB
// criteria: this.grantId ? this.criteria : this.getDefaultCriteria(),
updateDataFn: this.updateDataFn.bind(this)
},
position: { right: '0px;' }
position: { right: '0px;' },
panelClass: 'dialog-side-panel'
});
dialogRef.afterClosed().subscribe(result => {

View File

@ -397,6 +397,8 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread
updateDataFn: this.updateDataFn.bind(this)
},
position: { right: '0px;' },
panelClass: 'dialog-side-panel',
// may remove NgDialogAnimationService package
// animation: {
// to: "left",
// incomingOptions: {

View File

@ -189,3 +189,24 @@
overflow: initial;
box-shadow: none;
}
@keyframes slide {
100% {
right: 0;
}
}
.dialog-side-panel {
position: fixed !important;
bottom: 0;
top: 0;
right: -100vw;
width: 100vw;
height: 100%;
animation: slide .3s forwards;
// animation-delay: .3s;
.mat-dialog-container {
border-radius: 0;
}
}