diff --git a/ui/src/playlist/PlaylistList.jsx b/ui/src/playlist/PlaylistList.jsx index be77672a9..c7d611f36 100644 --- a/ui/src/playlist/PlaylistList.jsx +++ b/ui/src/playlist/PlaylistList.jsx @@ -38,6 +38,18 @@ const useStyles = makeStyles((theme) => ({ button: { color: theme.palette.type === 'dark' ? 'white' : undefined, }, + // RA's layout root is min-width: fit-content; capping the card keeps the page width + content: { + [theme.breakpoints.down('xs')]: { + overflowX: 'auto', + maxWidth: '100vw', + }, + }, + name: { + [theme.breakpoints.down('xs')]: { + overflowWrap: 'anywhere', + }, + }, })) const PlaylistFilter = (props) => { @@ -134,6 +146,7 @@ export const PlaylistLove = ({ record, className }) => ( PlaylistLove.defaultProps = { source: 'starred', sortable: false } const PlaylistList = (props) => { + const classes = useStyles() const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs')) const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md')) useResourceRefresh('playlist') @@ -165,6 +178,7 @@ const PlaylistList = (props) => { return ( } @@ -173,7 +187,7 @@ const PlaylistList = (props) => { > isWritable(r?.ownerId)}> - + {columns}