mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
tweak osd for narrow view
This commit is contained in:
parent
22397fb2a2
commit
17142dc6d3
4 changed files with 21 additions and 9 deletions
|
@ -760,7 +760,7 @@ import 'css!assets/css/videoosd';
|
|||
}
|
||||
|
||||
if (runtimeTicks && positionTicks != null && currentRuntimeTicks && !enableProgressByTimeOfDay && currentItem.RunTimeTicks && currentItem.Type !== 'Recording') {
|
||||
endsAtText.innerHTML = ' - ' + mediaInfo.getEndsAtFromPosition(runtimeTicks, positionTicks, true);
|
||||
endsAtText.innerHTML = ' ' + mediaInfo.getEndsAtFromPosition(runtimeTicks, positionTicks, true);
|
||||
} else {
|
||||
endsAtText.innerHTML = '';
|
||||
}
|
||||
|
@ -770,8 +770,20 @@ import 'css!assets/css/videoosd';
|
|||
nowPlayingPositionSlider.setBufferedRanges(bufferedRanges, runtimeTicks, positionTicks);
|
||||
}
|
||||
|
||||
updateTimeText(nowPlayingPositionText, positionTicks);
|
||||
updateTimeText(nowPlayingDurationText, runtimeTicks, true);
|
||||
if (positionTicks >= 0) {
|
||||
updateTimeText(nowPlayingPositionText, positionTicks);
|
||||
nowPlayingPositionText.classList.remove('hide');
|
||||
} else {
|
||||
nowPlayingPositionText.classList.add('hide');
|
||||
}
|
||||
|
||||
const leftTicks = runtimeTicks - positionTicks;
|
||||
if (leftTicks >= 0) {
|
||||
updateTimeText(nowPlayingDurationText, leftTicks);
|
||||
nowPlayingDurationText.classList.remove('hide');
|
||||
} else {
|
||||
nowPlayingPositionText.classList.add('hide');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue