diff --git a/client/stillbox/src/app/calls/calls.component.html b/client/stillbox/src/app/calls/calls.component.html index ed1ca05..86ce14f 100644 --- a/client/stillbox/src/app/calls/calls.component.html +++ b/client/stillbox/src/app/calls/calls.component.html @@ -101,7 +101,7 @@
- +
(0)); @ViewChild('paginator') paginator!: MatPaginator; + @ViewChild('callsTable', { read: ElementRef }) callsTable!: ElementRef; count = 0; dialog = inject(MatDialog); page = 0; @@ -188,6 +189,9 @@ export class CallsComponent { setPage(p: PageEvent, force?: boolean) { this.selection.clear(); this.curPage = p; + if (this.callsTable) { + this.callsTable.nativeElement.scrollIntoView(true); + } if (p && p!.pageSize != this.perPage) { this.perPage = p!.pageSize; this.prefsSvc.set('callsPerPage', p!.pageSize);