Skip to content
Snippets Groups Projects
Unverified Commit 43d4b6d4 authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #2097 from ProjectMirador/2094-drawer-width

Move width styling onto the paper component; fixes #2094
parents 701581c1 17aa3c59
No related branches found
No related tags found
No related merge requests found
...@@ -22,10 +22,10 @@ export class WindowSideBar extends Component { ...@@ -22,10 +22,10 @@ export class WindowSideBar extends Component {
<Drawer <Drawer
variant="persistent" variant="persistent"
className={classNames(classes.drawer)} className={classNames(classes.drawer)}
classes={{ paper: classNames(classes.drawer) }} classes={{ paper: classNames(classes.paper) }}
anchor="left" anchor="left"
PaperProps={{ style: { position: 'relative' } }} PaperProps={{ style: { position: 'relative' }, component: 'aside' }}
component="aside" SlideProps={{ mountOnEnter: true, unmountOnExit: true }}
open={sideBarOpen} open={sideBarOpen}
> >
<WindowSideBarButtons windowId={windowId} /> <WindowSideBarButtons windowId={windowId} />
......
...@@ -24,10 +24,12 @@ const mapStateToProps = (state, props) => ( ...@@ -24,10 +24,12 @@ const mapStateToProps = (state, props) => (
*/ */
const styles = theme => ({ const styles = theme => ({
toolbar: theme.mixins.toolbar, toolbar: theme.mixins.toolbar,
drawer: { paper: {
overflowX: 'hidden', overflowX: 'hidden',
left: 0,
width: 55, width: 55,
},
drawer: {
left: 0,
flexShrink: 0, flexShrink: 0,
height: '100%', height: '100%',
zIndex: theme.zIndex.appBar - 1, zIndex: theme.zIndex.appBar - 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment