mirror of
https://github.com/navidrome/navidrome.git
synced 2026-03-04 06:35:52 +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 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…
x
Reference in New Issue
Block a user