I am working on designing an interface with an Appbar and a drawer below it. Each component contains three divs
with Bootstrap, housing groups of buttons.
The issue I am facing is that the Drawer is covering the Appbar and I am struggling to reposition it.
Below is the code snippet I am currently using:
<div className="App">
<AppBar position="static">
<Toolbar>
<IconButton color="inherit" aria-label="Menu">
<MenuIcon />
</IconButton>
<Typography variant="title" color="inherit" aria-label="Menu">
title
</Typography>
</Toolbar>
</AppBar>
<Drawer
variant="permanent"
style={{width: '100%', zIndex: '1400', position:'absolute'}}
>
<Button>1</Button>
<Button>2</Button>
<Divider />
<Button>1</Button>
<Button>2</Button>
</Drawer>
<br />
<div className="container-full">
<div className="row">
<div class="col-sm-6">
<GridList cellHeight={50} className={styles.gridList} cols={5}>
<Button style={{width: '150px', border: '1px solid'}} variant="raised" color="primary">
<div
style={{fontSize:'12px', display: 'flex', justifyContent: 'center', textAlign:'center'}}>
Mohnweckerl Wiener Gouda
</div>
</Button>
Following the first bootstrap column, there is another "col-sm-4"
and then a "col-sm-2"
. All the buttons are placed in a GridList
.
For a visual representation, you can check out the image here.
The Drawer should ideally start where the arrows intersect. Any suggestions on how to achieve this?