tweak focusing status in thread

This commit is contained in:
Nicolas Constant 2019-08-14 21:11:22 -04:00
parent 560cf19903
commit 2b6ad187ac
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@
.status-selected {
background-color: #0f111a;
background-color: desaturate(lighten(#0f111a, 5%), 4%);
background-color: #0a0a13;
background-color: #0a0a12;
background-color: #0a0a10;
}
.status {

View File

@ -173,7 +173,7 @@ export class ThreadComponent implements OnInit, OnDestroy {
const el = this.statusChildren.toArray()[position];
el.isSelected = true;
// el.elem.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
el.elem.nativeElement.scrollIntoView({ behavior: 'auto', block: 'nearest', inline: 'start' });
el.elem.nativeElement.scrollIntoView({ behavior: 'auto', block: 'start', inline: 'nearest' });
}, 0);
})
.catch((err: HttpErrorResponse) => {