Device Manager annoying scroll fixed

This commit is contained in:
Manoj Vivek 2020-05-30 14:20:20 +05:30
parent d5bc371913
commit a40352ca0c
3 changed files with 6 additions and 4 deletions

View file

@ -4,5 +4,6 @@
border-radius: 10px;
border: 1px solid lightgrey;
height: 70vh;
width: 340px;
overflow: scroll;
}

View file

@ -99,15 +99,15 @@ export default function DeviceManager(props) {
<span></span>Drag and drop the devices across to re-order them.
</p>
<DragDropContext onDragEnd={onDragEnd}>
<Grid container spacing={3} className={styles.content}>
<Grid item xs={3} className={styles.section}>
<Grid container className={styles.content}>
<Grid item className={styles.section}>
<div className={styles.listTitle}>
<LightBulbIcon height={30} color="#FFD517" />
Active Devices
</div>
<DeviceList droppableId={'active'} devices={devices.active} />
</Grid>
<Grid item xs={3} className={styles.section}>
<Grid item className={styles.section}>
<div className={styles.listTitle}>
<LightBulbIcon height={30} color="darkgrey" />
Inactive Devices

View file

@ -1,6 +1,6 @@
.container {
margin: 50px;
height: 100%;
height: calc(100vh - 200px);
}
.content {
@ -10,6 +10,7 @@
.section {
position: relative;
padding: 0 20px;
}
.listTitle {