mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix backdrop positioning in legacy layouts
This commit is contained in:
parent
eff01b3d43
commit
3af1829470
2 changed files with 12 additions and 6 deletions
|
@ -18,6 +18,7 @@ class LayoutManager {
|
|||
tv = false;
|
||||
mobile = false;
|
||||
desktop = false;
|
||||
experimental = false;
|
||||
|
||||
setLayout(layout, save) {
|
||||
if (!layout || layout === 'auto') {
|
||||
|
@ -31,7 +32,8 @@ class LayoutManager {
|
|||
setLayout(this, 'tv', layout);
|
||||
setLayout(this, 'desktop', layout);
|
||||
|
||||
if (layout === 'experimental') {
|
||||
this.experimental = layout === 'experimental';
|
||||
if (this.experimental) {
|
||||
const legacyLayoutMode = browser.mobile ? 'mobile' : this.defaultLayout || 'desktop';
|
||||
setLayout(this, legacyLayoutMode, legacyLayoutMode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue