Add compact table and update themes

This commit is contained in:
Geomitron
2023-12-25 11:23:50 -06:00
parent f931a1b221
commit 0abf801c7e
9 changed files with 99 additions and 68 deletions

View File

@@ -1,21 +1,9 @@
import { AfterViewInit, Component, ElementRef, HostBinding, ViewChild } from '@angular/core'
import { SearchService } from 'src-angular/app/core/services/search.service'
import { Component, HostBinding } from '@angular/core'
@Component({
selector: 'app-browse',
templateUrl: './browse.component.html',
})
export class BrowseComponent implements AfterViewInit {
export class BrowseComponent {
@HostBinding('class.contents') contents = true
@ViewChild('resultTableDiv', { static: true }) resultTableDiv: ElementRef
constructor(private searchService: SearchService) { }
ngAfterViewInit() {
this.searchService.newSearch.subscribe(() => {
this.resultTableDiv.nativeElement.scrollTop = 0
})
}
}