Make cursor=move for the whole playlist item row

This commit is contained in:
Deluan
2020-06-04 19:44:26 -04:00
parent 331fa1d952
commit 4776dba003
+5 -12
View File
@@ -48,7 +48,7 @@ const useStyles = makeStyles(
flexWrap: 'wrap', flexWrap: 'wrap',
}, },
noResults: { padding: 20 }, noResults: { padding: 20 },
draggable: { row: {
cursor: 'move', cursor: 'move',
}, },
}), }),
@@ -138,24 +138,17 @@ const PlaylistSongs = (props) => {
) : ( ) : (
<ReactDragListView onDragEnd={handleDragEnd} nodeSelector={'tr'}> <ReactDragListView onDragEnd={handleDragEnd} nodeSelector={'tr'}>
<SongDatagrid <SongDatagrid
classes={classes}
expand={!isXsmall && <SongDetails />} expand={!isXsmall && <SongDetails />}
rowClick={null} rowClick={null}
{...controllerProps} {...controllerProps}
hasBulkActions={hasBulkActions} hasBulkActions={hasBulkActions}
contextAlwaysVisible={!isDesktop} contextAlwaysVisible={!isDesktop}
> >
{isDesktop && ( {isDesktop && <TextField source="id" label={'#'} />}
<TextField <TextField source="title" />
source="id"
label={'#'}
className={classes.draggable}
/>
)}
<TextField source="title" className={classes.draggable} />
{isDesktop && <AlbumLinkField source="album" />} {isDesktop && <AlbumLinkField source="album" />}
{isDesktop && ( {isDesktop && <TextField source="artist" />}
<TextField source="artist" className={classes.draggable} />
)}
<DurationField <DurationField
source="duration" source="duration"
className={classes.draggable} className={classes.draggable}