mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Add compact table and update themes
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user