Always show song context menu on tablets
This commit is contained in:
@@ -131,7 +131,7 @@ const AlbumSongs = (props) => {
|
|||||||
{...controllerProps}
|
{...controllerProps}
|
||||||
hasBulkActions={hasBulkActions}
|
hasBulkActions={hasBulkActions}
|
||||||
multiDisc={multiDisc}
|
multiDisc={multiDisc}
|
||||||
contextAlwaysVisible={isXsmall}
|
contextAlwaysVisible={!isDesktop}
|
||||||
>
|
>
|
||||||
{isDesktop && (
|
{isDesktop && (
|
||||||
<TextField
|
<TextField
|
||||||
|
|||||||
+11
-14
@@ -76,6 +76,7 @@ const SongList = (props) => {
|
|||||||
<SongDatagrid
|
<SongDatagrid
|
||||||
expand={<SongDetails />}
|
expand={<SongDetails />}
|
||||||
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
|
rowClick={(id, basePath, record) => dispatch(setTrack(record))}
|
||||||
|
contextAlwaysVisible={!isDesktop}
|
||||||
>
|
>
|
||||||
<TextField source="title" />
|
<TextField source="title" />
|
||||||
{isDesktop && <AlbumLinkField source="album" />}
|
{isDesktop && <AlbumLinkField source="album" />}
|
||||||
@@ -86,20 +87,16 @@ const SongList = (props) => {
|
|||||||
<FunctionField source="year" render={(r) => r.year || ''} />
|
<FunctionField source="year" render={(r) => r.year || ''} />
|
||||||
)}
|
)}
|
||||||
<DurationField source="duration" />
|
<DurationField source="duration" />
|
||||||
{isDesktop ? (
|
<SongContextMenu
|
||||||
<SongContextMenu
|
source={'starred'}
|
||||||
source={'starred'}
|
sortBy={'starred DESC, starredAt DESC'}
|
||||||
label={
|
label={
|
||||||
<StarBorderIcon
|
<StarBorderIcon
|
||||||
fontSize={'small'}
|
fontSize={'small'}
|
||||||
className={classes.columnIcon}
|
className={classes.columnIcon}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
sortBy={'starred DESC, starredAt DESC'}
|
/>
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<SongContextMenu showStar={false} />
|
|
||||||
)}
|
|
||||||
</SongDatagrid>
|
</SongDatagrid>
|
||||||
)}
|
)}
|
||||||
</List>
|
</List>
|
||||||
|
|||||||
Reference in New Issue
Block a user