1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

simplify some css rules

This commit is contained in:
dkanada 2019-05-23 03:02:18 -07:00
parent 5135fd37b3
commit 63b4249c34
5 changed files with 22 additions and 94 deletions

View file

@ -33,7 +33,8 @@ define(['layoutManager', 'dom', 'css!./emby-scrollbuttons', 'registerElement', '
}
function updateScrollButtons(scrollButtons, scrollSize, scrollPos, scrollWidth) {
if (scrollWidth <= scrollSize) {
// hack alert add ten for rounding errors
if (scrollWidth <= scrollSize + 10) {
scrollButtons.scrollButtonsLeft.classList.add('hide');
scrollButtons.scrollButtonsRight.classList.add('hide');
}