mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-23 23:20:57 +03:00
Only add padding to layout if the player is visible
This commit is contained in:
parent
3d6ce8a77f
commit
86f73eecca
@ -7,12 +7,13 @@ import AppBar from './AppBar'
|
||||
import themes from '../themes'
|
||||
|
||||
const useStyles = makeStyles({
|
||||
root: { paddingBottom: '80px' }
|
||||
root: { paddingBottom: (props) => (props.addPadding ? '80px' : 0) }
|
||||
})
|
||||
|
||||
export default (props) => {
|
||||
const classes = useStyles()
|
||||
const theme = useSelector((state) => themes[state.theme] || themes.DarkTheme)
|
||||
const queue = useSelector((state) => state.queue)
|
||||
const classes = useStyles({ addPadding: queue.queue.length > 0 })
|
||||
|
||||
return (
|
||||
<Layout
|
||||
|
Loading…
x
Reference in New Issue
Block a user