Alwasy show context menu on mobile views

This commit is contained in:
Deluan
2020-05-22 21:47:48 -04:00
parent 52a46e61e0
commit 0a3e6c66c1
3 changed files with 40 additions and 15 deletions
+10 -7
View File
@@ -55,13 +55,6 @@ const useStylesListToolbar = makeStyles({
},
})
const SongsDatagridBody = (props) => (
<DatagridBody {...props} row={<SongDatagridRow />} />
)
const SongsDatagrid = (props) => (
<Datagrid {...props} body={<SongsDatagridBody />} />
)
const PlaylistSongs = (props) => {
const classes = useStyles(props)
const classesToolbar = useStylesListToolbar(props)
@@ -86,6 +79,16 @@ const PlaylistSongs = (props) => {
}
}
const SongsDatagridBody = (props) => (
<DatagridBody
{...props}
row={<SongDatagridRow contextVisible={isXsmall} />}
/>
)
const SongsDatagrid = (props) => (
<Datagrid {...props} body={<SongsDatagridBody />} />
)
return (
<>
<ListToolbar