add option to switch preview between poster and player

This commit is contained in:
j 2026-01-14 18:55:57 +00:00
commit a1cca04a53

View file

@ -212,6 +212,8 @@ pandora.ui.mainMenu = function() {
set.itemView = value;
}
pandora.UI.set(set);
} else if (data.id == 'previewtype') {
pandora.UI.set({preview: value});
} else if (data.id == 'viewicons') {
pandora.UI.set({icons: value});
} else if (data.id.slice(0, 8) == 'viewlist') {
@ -1689,6 +1691,11 @@ pandora.ui.mainMenu = function() {
{},
{ id: 'resetfilters', title: Ox._('Reset Filters') }
] },
{ id: 'preview', title: Ox._('Preview'), items: [
{ group: 'previewtype', min: 1, max: 1, items: ['poster', 'player'].map(function(preview) {
return {id: preview, title: Ox._(Ox.toTitleCase(preview)), checked: ui.preview == preview};
}) },
] },
{},
{ id: 'item', title: [
Ox._('Open {0}', [Ox._(pandora.site.itemName.singular)]),