fix(ui): improve playlist details layout with word break and stats styling
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -69,9 +69,14 @@ const useStyles = makeStyles(
|
|||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
whiteSpace: 'nowrap',
|
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
|
wordBreak: 'break-word',
|
||||||
|
},
|
||||||
|
stats: {
|
||||||
|
marginTop: '1em',
|
||||||
|
marginBottom: '0.5em',
|
||||||
|
display: 'inline-block',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
@@ -143,7 +148,7 @@ const PlaylistDetails = (props) => {
|
|||||||
>
|
>
|
||||||
{record.name || translate('ra.page.loading')}
|
{record.name || translate('ra.page.loading')}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography component="p">
|
<Typography component="p" className={classes.stats}>
|
||||||
{record.songCount ? (
|
{record.songCount ? (
|
||||||
<span>
|
<span>
|
||||||
{record.songCount}{' '}
|
{record.songCount}{' '}
|
||||||
|
|||||||
Reference in New Issue
Block a user