Measure the bottom bars so the section rail is never hidden behind the mini player

This commit is contained in:
Jonathan Sykes
2026-09-22 14:09:03 +08:00
parent 530d07d920
commit 6c4571cb33
2 changed files with 51 additions and 4 deletions

View File

@@ -4230,6 +4230,12 @@ body.landscape-fs .player-stage { touch-action: none; } /* fullscreen (real or t
/* Phones only — on desktop the whole page is visible at once. */
@media (min-width: 861px) { .sec-rail { display: none !important; } }
@media (max-width: 860px) {
/* clear of the bottom nav / mini player */
.sec-rail { top: auto; bottom: 132px; transform: none; }
/* Sits above the bottom nav and the mini player. Both are position:fixed
bottom:0 and either can be absent, so SectionRail.placeRail() measures
them and overrides --rail-bottom; this is only the pre-measure default. */
.sec-rail {
top: auto;
bottom: var(--rail-bottom, 150px);
transform: none;
}
}