Ajustement de la pop-in d'infos sur les sauts
This commit is contained in:
@@ -25,14 +25,4 @@ table {
|
||||
flex-direction: column;
|
||||
align-items: initial;
|
||||
padding-top: 25px;
|
||||
}
|
||||
|
||||
.showPopin {
|
||||
display: inline-block !important;
|
||||
position: relative;
|
||||
/* right: -25px;
|
||||
top: -25px; */
|
||||
border: 1px solid black;
|
||||
min-width: 125px;
|
||||
z-index: 1000;
|
||||
}
|
||||
@@ -26,14 +26,11 @@ export class ListOfJumpsComponent implements OnInit {
|
||||
];
|
||||
public dataSourceTable;
|
||||
public resultsLength = 0;
|
||||
private showPopinForItemId = -1;
|
||||
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
||||
|
||||
constructor(
|
||||
private serviceApi: JumpService,
|
||||
private serviceComm: ServiceComm,
|
||||
public dialog: MatDialog
|
||||
) { }
|
||||
constructor(private serviceApi: JumpService,
|
||||
private serviceComm: ServiceComm,
|
||||
public dialog: MatDialog) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.serviceComm.UpdatedComponentTitle('List of jumps');
|
||||
@@ -52,27 +49,13 @@ export class ListOfJumpsComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
showPopin(event, item) {
|
||||
this.showPopinForItemId = item.id;
|
||||
}
|
||||
|
||||
hidePopin(event, item) {
|
||||
this.showPopinForItemId = -1;
|
||||
}
|
||||
|
||||
calculateClasses(item) {
|
||||
return {
|
||||
'showPopin': this.showPopinForItemId != -1 && item.id === this.showPopinForItemId,
|
||||
};
|
||||
}
|
||||
|
||||
openDialog(item: JumpResp) {
|
||||
this.dialog.open(JumpInfosComponent, {
|
||||
data: item,
|
||||
position: {
|
||||
top: '0px',
|
||||
left: '0px'
|
||||
}
|
||||
data: item //,
|
||||
// position: {
|
||||
// top: '0px',
|
||||
// left: '0px'
|
||||
// }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user