fix(ui): improve playlist details layout with word break and stats styling

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-05-28 17:33:35 -04:00 committed by Joe Stump
parent 5a3f91e92e
commit f6580e5e9e
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -69,9 +69,14 @@ const useStyles = makeStyles(
opacity: 0.5,
},
title: {
whiteSpace: 'nowrap',
overflow: 'hidden',
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')}
</Typography>
<Typography component="p">
<Typography component="p" className={classes.stats}>
{record.songCount ? (
<span>
{record.songCount}{' '}