Lift the section rail clear of the floating mini player

This commit is contained in:
Jonathan Sykes
2026-09-22 14:58:31 +08:00
parent f411e49e4c
commit d64c5f2613
2 changed files with 9 additions and 1 deletions

View File

@@ -5597,7 +5597,9 @@ const SectionRail = (() => {
// it entirely and the rail was parked underneath it.
if (box.top > window.innerHeight * 0.5) occupied = Math.max(occupied, window.innerHeight - box.top);
}
const want = Math.round(occupied + 14);
// 14px was too tight: the mini player is a floating CARD with a shadow and
// rounded corners, so its visual edge reads higher than its box.
const want = Math.round(occupied + 24);
if (st.bottom !== want) {
st.bottom = want;
if (r) r.style.setProperty('--rail-bottom', want + 'px');