mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
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
@ -21,6 +21,7 @@ const LibraryFilter = (props) => (
|
|||||||
|
|
||||||
const LibraryList = (props) => {
|
const LibraryList = (props) => {
|
||||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||||
|
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('lg'))
|
||||||
useResourceRefresh('library')
|
useResourceRefresh('library')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -40,7 +41,7 @@ const LibraryList = (props) => {
|
|||||||
) : (
|
) : (
|
||||||
<Datagrid rowClick="edit">
|
<Datagrid rowClick="edit">
|
||||||
<TextField source="name" />
|
<TextField source="name" />
|
||||||
<TextField source="path" />
|
{isDesktop && <TextField source="path" />}
|
||||||
<BooleanField source="defaultNewUsers" />
|
<BooleanField source="defaultNewUsers" />
|
||||||
<NumberField source="totalSongs" />
|
<NumberField source="totalSongs" />
|
||||||
<NumberField source="totalAlbums" />
|
<NumberField source="totalAlbums" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user