Fix backdrop positioning in experimental layout

This commit is contained in:
Bill Thornton
2025-04-15 12:37:05 -04:00
parent d975d86595
commit eb3c245a67

View File

@@ -1,15 +1,5 @@
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
@@ -18,10 +8,7 @@ const Backdrop = () => {
return (
<>
<Box
className='backdropContainer'
sx={styles}
/>
<div className='backdropContainer' />
<div className='backgroundContainer' />
</>
);