Skip to content
Snippets Groups Projects
Commit b481ead9 authored by Chris Beer's avatar Chris Beer
Browse files

Clean up WindowSideBar styling

parent ec6b7641
Branches
No related tags found
1 merge request!19Draft: Merge video support into mui5
...@@ -6,11 +6,15 @@ import WindowSideBarButtons from '../containers/WindowSideBarButtons'; ...@@ -6,11 +6,15 @@ import WindowSideBarButtons from '../containers/WindowSideBarButtons';
const Root = styled(Drawer, { name: 'WindowSideBar', slot: 'root' })(({ theme }) => ({ const Root = styled(Drawer, { name: 'WindowSideBar', slot: 'root' })(({ theme }) => ({
flexShrink: 0, flexShrink: 0,
height: '100%',
order: -1000, order: -1000,
zIndex: theme.zIndex.appBar - 1, zIndex: theme.zIndex.appBar - 1,
})); }));
const Nav = styled('nav', { name: 'WindowSideBar', slot: 'nav' })({
position: 'relative !important',
width: 48,
});
/** /**
* WindowSideBar * WindowSideBar
*/ */
...@@ -31,15 +35,7 @@ export class WindowSideBar extends Component { ...@@ -31,15 +35,7 @@ export class WindowSideBar extends Component {
anchor={direction === 'rtl' ? 'right' : 'left'} anchor={direction === 'rtl' ? 'right' : 'left'}
PaperProps={{ PaperProps={{
'aria-label': t('sidebarPanelsNavigation'), 'aria-label': t('sidebarPanelsNavigation'),
component: 'nav', component: Nav,
sx: {
borderBlock: 0,
borderInlineStart: 0,
height: '100%',
overflowX: 'hidden',
position: 'relative',
width: 48,
},
variant: 'outlined', variant: 'outlined',
}} }}
SlideProps={{ direction: direction === 'rtl' ? 'left' : 'right', mountOnEnter: true, unmountOnExit: true }} SlideProps={{ direction: direction === 'rtl' ? 'left' : 'right', mountOnEnter: true, unmountOnExit: true }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment