diff --git a/src-angular/app/components/browse/result-table/result-table.component.html b/src-angular/app/components/browse/result-table/result-table.component.html index 62ad9ce..10d8154 100644 --- a/src-angular/app/components/browse/result-table/result-table.component.html +++ b/src-angular/app/components/browse/result-table/result-table.component.html @@ -1,21 +1,42 @@
-
- - - - -
-
- - - - - +
+ + + + + + + + + + + + + - - - - - - - - - - - - - - - diff --git a/src-angular/app/components/browse/result-table/result-table.component.ts b/src-angular/app/components/browse/result-table/result-table.component.ts index cc05ac0..0d2cde1 100644 --- a/src-angular/app/components/browse/result-table/result-table.component.ts +++ b/src-angular/app/components/browse/result-table/result-table.component.ts @@ -119,6 +119,15 @@ export class ResultTableComponent implements OnInit, OnDestroy { } } + public get tableHeaderPosition(): string { + if (!this.viewport) { + return '-0px' + } + const offset = this.viewport.getOffsetToRenderedContentStart() + + return `-${offset}px` + } + @HostListener('window:resize', ['$event']) onResize() { if (this.viewport) { diff --git a/src-angular/app/core/services/selection.service.ts b/src-angular/app/core/services/selection.service.ts index 67d2f69..4979b23 100644 --- a/src-angular/app/core/services/selection.service.ts +++ b/src-angular/app/core/services/selection.service.ts @@ -12,7 +12,7 @@ export class SelectionService { public selections: { [groupId: number]: boolean | undefined } = {} - constructor(searchService: SearchService) { + constructor(private searchService: SearchService) { searchService.newSearch.subscribe(() => { this.selections = {} this.deselectAll() @@ -33,8 +33,8 @@ export class SelectionService { selectAll() { this.allSelected = true - for (const groupId in this.selections) { - this.selections[groupId] = true + for (const song of this.searchService.groupedSongs) { + this.selections[song[0].groupId] = true } this.selectAllChangedEmitter.emit(true) }
+ + + Name + + Artist + + + Album + + Genre + + Year + + Charter + + Length (min) + Difficulty + Upload Date +
- - - Name - - Artist - - - Album - - Genre - - Year - - Charter - - Length (min) - Difficulty - Upload Date -