auto slideshow on narrow window condition
This commit is contained in:
parent
aeaa4fe765
commit
95fbd885de
4 changed files with 9 additions and 1 deletions
|
|
@ -139,6 +139,11 @@ function onResize() {
|
||||||
} else {
|
} else {
|
||||||
ui.modalBox.classList.remove('mh85');
|
ui.modalBox.classList.remove('mh85');
|
||||||
}
|
}
|
||||||
|
if (WIN.innerWidth < 800) {
|
||||||
|
$('app').classList.add('slideshow');
|
||||||
|
} else {
|
||||||
|
api.prefs.updateDrawer();
|
||||||
|
}
|
||||||
api.view.update_slider();
|
api.view.update_slider();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,3 +128,5 @@ export const preferences = {
|
||||||
booleanSave,
|
booleanSave,
|
||||||
updateDrawer
|
updateDrawer
|
||||||
};
|
};
|
||||||
|
|
||||||
|
api.prefs = preferences;
|
||||||
|
|
@ -46,6 +46,7 @@ async function checkReady() {
|
||||||
}
|
}
|
||||||
load = undefined;
|
load = undefined;
|
||||||
api.event.emit('load-done', stats);
|
api.event.emit('load-done', stats);
|
||||||
|
api.event.emit('resize');
|
||||||
if (api.electron) {
|
if (api.electron) {
|
||||||
$('install').classList.add('hide');
|
$('install').classList.add('hide');
|
||||||
$('app-quit').classList.remove('hide');
|
$('app-quit').classList.remove('hide');
|
||||||
|
|
|
||||||
|
|
@ -865,7 +865,7 @@ details[open] summary::after {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
transition: transform 0.15s ease-in-out, border 0.15s ease-in-out;
|
transition: transform 0.15s ease-in-out, border 0.15s ease-in-out;
|
||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
border-right: 1px solid var(--border-gray);
|
border-right: 0;
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue