diff --git a/src/components/Shell/Drawer.tsx b/src/components/Shell/Drawer.tsx
index c971e32..22062e4 100644
--- a/src/components/Shell/Drawer.tsx
+++ b/src/components/Shell/Drawer.tsx
@@ -1,6 +1,7 @@
import { PropsWithChildren, useContext } from 'react'
import { Link } from 'react-router-dom'
import { Theme } from '@mui/material/styles'
+import Box from '@mui/material/Box'
import MuiDrawer from '@mui/material/Drawer'
import List from '@mui/material/List'
import MuiLink from '@mui/material/Link'
@@ -24,8 +25,6 @@ import GitInfo from 'react-git-info/macro'
import { routes } from 'config/routes'
import { SettingsContext } from 'contexts/SettingsContext'
-import { DrawerHeader } from './DrawerHeader'
-
const { commit } = GitInfo()
export const drawerWidth = 240
@@ -59,7 +58,16 @@ export const Drawer = ({ isDrawerOpen, onDrawerClose, theme }: DrawerProps) => {
anchor="left"
open={isDrawerOpen}
>
-
+ ({
+ display: 'flex',
+ alignItems: 'center',
+ padding: theme.spacing(0, 1),
+ // necessary for drawer content to be pushed below app bar
+ ...theme.mixins.toolbar,
+ justifyContent: 'flex-end',
+ })}
+ >
{theme.direction === 'ltr' ? (
@@ -67,7 +75,7 @@ export const Drawer = ({ isDrawerOpen, onDrawerClose, theme }: DrawerProps) => {
)}
-
+
diff --git a/src/components/Shell/DrawerHeader.tsx b/src/components/Shell/DrawerHeader.tsx
deleted file mode 100644
index 15ab767..0000000
--- a/src/components/Shell/DrawerHeader.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { styled } from '@mui/material/styles'
-
-export const DrawerHeader = styled('div')(({ theme }) => ({
- display: 'flex',
- alignItems: 'center',
- padding: theme.spacing(0, 1),
- // necessary for content to be below app bar
- ...theme.mixins.toolbar,
- justifyContent: 'flex-end',
-}))
diff --git a/src/components/Shell/RouteContent.tsx b/src/components/Shell/RouteContent.tsx
index 3833a2f..19f78f8 100644
--- a/src/components/Shell/RouteContent.tsx
+++ b/src/components/Shell/RouteContent.tsx
@@ -3,11 +3,10 @@ import Box from '@mui/material/Box'
import Collapse from '@mui/material/Collapse'
import { styled } from '@mui/material/styles'
-import { DrawerHeader } from './DrawerHeader'
import { drawerWidth } from './Drawer'
import { peerListWidth } from './PeerList'
-const Main = styled('main', {
+const StyledMain = styled('main', {
shouldForwardProp: prop =>
prop !== 'isDrawerOpen' && prop !== 'isPeerListOpen',
})<{
@@ -49,7 +48,7 @@ export const RouteContent = ({
showAppBar,
}: RouteContentProps) => {
return (
-
+ {/*
+ This Collapse acts as a spacer to allow the controls to hide behind the AppBar.
+ */}
-
+ ({
+ ...theme.mixins.toolbar,
+ })}
+ />
{children}
-
+
)
}