fix(ui): improve layout and responsiveness of SelectPlaylistInput component
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -20,13 +20,20 @@ import { isWritable } from '../common'
|
|||||||
import { makeStyles } from '@material-ui/core'
|
import { makeStyles } from '@material-ui/core'
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: { width: '100%' },
|
root: {
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
},
|
||||||
searchField: {
|
searchField: {
|
||||||
marginBottom: theme.spacing(2),
|
marginBottom: theme.spacing(2),
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
flexShrink: 0,
|
||||||
},
|
},
|
||||||
playlistList: {
|
playlistList: {
|
||||||
maxHeight: 200,
|
flex: 1,
|
||||||
|
minHeight: 0,
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
border: `1px solid ${theme.palette.divider}`,
|
border: `1px solid ${theme.palette.divider}`,
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
@@ -42,6 +49,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
selectedPlaylistsContainer: {
|
selectedPlaylistsContainer: {
|
||||||
marginTop: theme.spacing(2),
|
marginTop: theme.spacing(2),
|
||||||
|
flexShrink: 0,
|
||||||
|
maxHeight: '30%',
|
||||||
|
overflow: 'auto',
|
||||||
},
|
},
|
||||||
selectedPlaylist: {
|
selectedPlaylist: {
|
||||||
display: 'inline-flex',
|
display: 'inline-flex',
|
||||||
|
|||||||
Reference in New Issue
Block a user