feat(ui): conditionally display 'path' field in LibraryList for desktop view
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
3476be01f7
commit
4e34d3ac1f
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ const LibraryFilter = (props) => (
|
|||
|
||||
const LibraryList = (props) => {
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'))
|
||||
useResourceRefresh('library')
|
||||
|
||||
return (
|
||||
|
|
@ -40,7 +41,7 @@ const LibraryList = (props) => {
|
|||
) : (
|
||||
<Datagrid rowClick="edit">
|
||||
<TextField source="name" />
|
||||
<TextField source="path" />
|
||||
{isDesktop && <TextField source="path" />}
|
||||
<BooleanField source="defaultNewUsers" />
|
||||
<NumberField source="totalSongs" />
|
||||
<NumberField source="totalAlbums" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue