mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add experimental display mode option
This commit is contained in:
parent
e542e8dc5e
commit
a3bbe02af2
3 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,11 @@ class LayoutManager {
|
|||
setLayout(this, 'tv', layout);
|
||||
setLayout(this, 'desktop', layout);
|
||||
|
||||
if (layout === 'experimental') {
|
||||
const legacyLayoutMode = browser.mobile ? 'mobile' : this.defaultLayout || 'desktop';
|
||||
setLayout(this, legacyLayoutMode, legacyLayoutMode);
|
||||
}
|
||||
|
||||
if (save !== false) {
|
||||
appSettings.set('layout', layout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue