diff --git a/ui/src/album/AlbumDetails.js b/ui/src/album/AlbumDetails.js index 36a6a2472..9cb8f6e16 100644 --- a/ui/src/album/AlbumDetails.js +++ b/ui/src/album/AlbumDetails.js @@ -22,65 +22,73 @@ import { } from '../common' import config from '../config' -const useStyles = makeStyles((theme) => ({ - root: { - [theme.breakpoints.down('xs')]: { - padding: '0.7em', - minWidth: '20em', +const useStyles = makeStyles( + (theme) => ({ + root: { + [theme.breakpoints.down('xs')]: { + padding: '0.7em', + minWidth: '20em', + }, + [theme.breakpoints.up('sm')]: { + padding: '1em', + minWidth: '32em', + }, }, - [theme.breakpoints.up('sm')]: { - padding: '1em', - minWidth: '32em', + cardContents: { + display: 'flex', }, - }, - cardContents: { - display: 'flex', - }, - details: { - display: 'flex', - flexDirection: 'column', - }, - content: { - flex: '2 0 auto', - }, - coverParent: { - [theme.breakpoints.down('xs')]: { - height: '8em', - width: '8em', - minWidth: '8em', + details: { + display: 'flex', + flexDirection: 'column', }, - [theme.breakpoints.up('sm')]: { - height: '10em', - width: '10em', - minWidth: '10em', + content: { + flex: '2 0 auto', }, - [theme.breakpoints.up('lg')]: { - height: '15em', - width: '15em', - minWidth: '15em', + coverParent: { + [theme.breakpoints.down('xs')]: { + height: '8em', + width: '8em', + minWidth: '8em', + }, + [theme.breakpoints.up('sm')]: { + height: '10em', + width: '10em', + minWidth: '10em', + }, + [theme.breakpoints.up('lg')]: { + height: '15em', + width: '15em', + minWidth: '15em', + }, }, - }, - cover: { - objectFit: 'contain', - cursor: 'pointer', - display: 'block', - width: '100%', - height: '100%', - }, - loveButton: { - top: theme.spacing(-0.2), - left: theme.spacing(0.5), - }, - commentBlock: { - display: 'inline-block', - marginTop: '1em', - float: 'left', - wordBreak: 'break-all', - }, - pointerCursor: { - cursor: 'pointer', - }, -})) + cover: { + objectFit: 'contain', + cursor: 'pointer', + display: 'block', + width: '100%', + height: '100%', + }, + loveButton: { + top: theme.spacing(-0.2), + left: theme.spacing(0.5), + }, + commentBlock: { + display: 'inline-block', + marginTop: '1em', + float: 'left', + wordBreak: 'break-all', + }, + pointerCursor: { + cursor: 'pointer', + }, + recordName: {}, + recordArtist: {}, + recordMeta: {}, + }), + { + name: 'NDAlbumDetails', + } +) const AlbumComment = ({ record }) => { const classes = useStyles() @@ -159,7 +167,7 @@ const AlbumDetails = ({ record }) => {