mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 19:50:37 +03:00
Show year range over the album art when in "artist view" mode
This commit is contained in:
parent
38b341ebc5
commit
3383327c51
@ -11,7 +11,7 @@ import { Link } from 'react-router-dom'
|
||||
import { linkToRecord, Loading } from 'react-admin'
|
||||
import { withContentRect } from 'react-measure'
|
||||
import subsonic from '../subsonic'
|
||||
import { ArtistLinkField } from '../common'
|
||||
import { ArtistLinkField, RangeField } from '../common'
|
||||
import AlbumContextMenu from '../common/AlbumContextMenu.js'
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
@ -99,7 +99,12 @@ const AlbumGridTile = ({ showArtist, record, basePath }) => {
|
||||
className={classes.artistLink}
|
||||
/>
|
||||
) : (
|
||||
record.maxYear || ''
|
||||
<RangeField
|
||||
record={record}
|
||||
source={'year'}
|
||||
sortBy={'maxYear'}
|
||||
sortByOrder={'DESC'}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user