Fixing sticky tabs overlapping title on longer titles (#1320)

This commit is contained in:
Robbie Davis 2022-06-14 08:07:28 -04:00 committed by GitHub
parent 549b889639
commit 791e852596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,6 @@
.nav-tabs.fixed {
position: fixed;
top: 114px;
z-index: 100;
background-color: var(--bs-body-bg);
width: 100%;

View File

@ -255,6 +255,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {
if (!document.querySelector('.nav-tabs.fixed') && (tabOffset - mainOffset) <= mainScrollPos) {
tabs!.classList.add("fixed");
tabs!.style.top = mainOffset+'px';
} else if (document.querySelector('.nav-tabs.fixed') && mainScrollPos <= (contentOffset - mainOffset)) {
tabs!.classList.remove("fixed");
}