mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-24 07:30:57 +03:00
Always show context menu if not in desktop
This commit is contained in:
parent
2010fcf4ca
commit
aae66cfcf0
@ -64,18 +64,18 @@ const useStyles = makeStyles(
|
||||
},
|
||||
},
|
||||
contextMenu: {
|
||||
visibility: 'hidden',
|
||||
visibility: (props) => (props.isDesktop ? 'hidden' : 'visible'),
|
||||
},
|
||||
}),
|
||||
{ name: 'RaList' }
|
||||
)
|
||||
|
||||
const AlbumSongs = (props) => {
|
||||
const classes = useStyles(props)
|
||||
const { data, ids } = props
|
||||
const dispatch = useDispatch()
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
||||
const classes = useStyles({ isDesktop })
|
||||
const dispatch = useDispatch()
|
||||
const version = useVersion()
|
||||
return (
|
||||
<>
|
||||
|
@ -63,7 +63,7 @@ const useStyles = makeStyles(
|
||||
},
|
||||
},
|
||||
contextMenu: {
|
||||
visibility: 'hidden',
|
||||
visibility: (props) => (props.isDesktop ? 'hidden' : 'visible'),
|
||||
},
|
||||
}),
|
||||
{ name: 'RaList' }
|
||||
@ -78,10 +78,10 @@ const ReorderableList = ({ readOnly, children, ...rest }) => {
|
||||
|
||||
const PlaylistSongs = ({ playlistId, readOnly, ...props }) => {
|
||||
const { data, ids } = props
|
||||
const classes = useStyles(props)
|
||||
const dispatch = useDispatch()
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
||||
const classes = useStyles({ isDesktop })
|
||||
const dispatch = useDispatch()
|
||||
const dataProvider = useDataProvider()
|
||||
const refresh = useRefresh()
|
||||
const notify = useNotify()
|
||||
|
Loading…
x
Reference in New Issue
Block a user