More optimization for small screens

This commit is contained in:
Deluan
2020-05-23 14:11:39 -04:00
parent 290e8c4bf0
commit c13766bbc3
4 changed files with 29 additions and 18 deletions
+8 -4
View File
@@ -70,10 +70,14 @@ const SongList = (props) => {
<FunctionField source="year" render={(r) => r.year || ''} />
)}
<DurationField source="duration" />
<SongContextMenu
label={translate('resources.song.fields.starred')}
sortBy={'starred DESC, starredAt ASC'}
/>
{isDesktop ? (
<SongContextMenu
label={translate('resources.song.fields.starred')}
sortBy={'starred DESC, starredAt ASC'}
/>
) : (
<SongContextMenu showStar={false} />
)}
</SongDatagrid>
)}
</List>