mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Applied fixes for exit button on mobile
This commit is contained in:
parent
0122ef1e03
commit
bf995e4d63
1 changed files with 9 additions and 6 deletions
|
@ -260,8 +260,11 @@ export default function (options) {
|
||||||
|
|
||||||
loadSwiper(dialog, options);
|
loadSwiper(dialog, options);
|
||||||
|
|
||||||
const btnSlideshowExit = dialog.querySelector('.btnSlideshowExit');
|
if (layoutManager.desktop) {
|
||||||
if (btnSlideshowExit) btnSlideshowExit.classList.add('hide');
|
const topActionButtons = dialog.querySelector('.topActionButtons');
|
||||||
|
if (topActionButtons) topActionButtons.classList.add('hide');
|
||||||
|
}
|
||||||
|
|
||||||
const btnSlideshowPrevious = dialog.querySelector('.btnSlideshowPrevious');
|
const btnSlideshowPrevious = dialog.querySelector('.btnSlideshowPrevious');
|
||||||
if (btnSlideshowPrevious) btnSlideshowPrevious.classList.add('hide');
|
if (btnSlideshowPrevious) btnSlideshowPrevious.classList.add('hide');
|
||||||
const btnSlideshowNext = dialog.querySelector('.btnSlideshowNext');
|
const btnSlideshowNext = dialog.querySelector('.btnSlideshowNext');
|
||||||
|
@ -570,8 +573,8 @@ export default function (options) {
|
||||||
slideToShow(bottom, 'down');
|
slideToShow(bottom, 'down');
|
||||||
}
|
}
|
||||||
|
|
||||||
const exit = dialog.querySelector('.btnSlideshowExit');
|
const topActionButtons = dialog.querySelector('.topActionButtons');
|
||||||
if (exit) slideToShow(exit, 'up');
|
if (topActionButtons) slideToShow(topActionButtons, 'up');
|
||||||
|
|
||||||
const left = dialog.querySelector('.btnSlideshowPrevious');
|
const left = dialog.querySelector('.btnSlideshowPrevious');
|
||||||
if (left) slideToShow(left, 'left');
|
if (left) slideToShow(left, 'left');
|
||||||
|
@ -591,8 +594,8 @@ export default function (options) {
|
||||||
slideToHide(bottom, 'down');
|
slideToHide(bottom, 'down');
|
||||||
}
|
}
|
||||||
|
|
||||||
const exit = dialog.querySelector('.btnSlideshowExit');
|
const topActionButtons = dialog.querySelector('.topActionButtons');
|
||||||
if (exit) slideToHide(exit, 'up');
|
if (topActionButtons) slideToHide(topActionButtons, 'up');
|
||||||
|
|
||||||
const left = dialog.querySelector('.btnSlideshowPrevious');
|
const left = dialog.querySelector('.btnSlideshowPrevious');
|
||||||
if (left) slideToHide(left, 'left');
|
if (left) slideToHide(left, 'left');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue