1
0
Fork 0
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:
Bill Thornton 2024-01-19 17:14:26 -05:00
parent eff01b3d43
commit 3af1829470
2 changed files with 12 additions and 6 deletions

View file

@ -1,7 +1,15 @@
import Box from '@mui/material/Box';
import React, { useEffect } from 'react';
import layoutManager from './layoutManager';
import { DRAWER_WIDTH } from './ResponsiveDrawer';
const styles = layoutManager.experimental ? {
left: {
md: DRAWER_WIDTH
}
} : {};
const Backdrop = () => {
useEffect(() => {
// Initialize the UI components after first render
@ -12,11 +20,7 @@ const Backdrop = () => {
<>
<Box
className='backdropContainer'
sx={{
left: {
md: DRAWER_WIDTH
}
}}
sx={styles}
/>
<div className='backgroundContainer' />
</>