mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-08-11 09:13:42 -04:00
Fixing sticky tabs overlapping title on longer titles (#1320)
This commit is contained in:
parent
549b889639
commit
791e852596
@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
.nav-tabs.fixed {
|
.nav-tabs.fixed {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 114px;
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
background-color: var(--bs-body-bg);
|
background-color: var(--bs-body-bg);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -255,6 +255,7 @@ export class SeriesDetailComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
if (!document.querySelector('.nav-tabs.fixed') && (tabOffset - mainOffset) <= mainScrollPos) {
|
if (!document.querySelector('.nav-tabs.fixed') && (tabOffset - mainOffset) <= mainScrollPos) {
|
||||||
tabs!.classList.add("fixed");
|
tabs!.classList.add("fixed");
|
||||||
|
tabs!.style.top = mainOffset+'px';
|
||||||
} else if (document.querySelector('.nav-tabs.fixed') && mainScrollPos <= (contentOffset - mainOffset)) {
|
} else if (document.querySelector('.nav-tabs.fixed') && mainScrollPos <= (contentOffset - mainOffset)) {
|
||||||
tabs!.classList.remove("fixed");
|
tabs!.classList.remove("fixed");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user