Add option to disable album cover animation in the player. Closes #1185

This commit is contained in:
Deluan
2021-06-28 17:10:58 -04:00
parent 167fe46288
commit a73f885afb
5 changed files with 23 additions and 1 deletions
+8 -1
View File
@@ -62,6 +62,10 @@ const useStyle = makeStyles(
'& .play-mode-title': {
'pointer-events': 'none',
},
'& .music-player-panel .panel-content div.img-rotate': {
'animation-duration': (props) =>
props.enableCoverAnimation ? null : '0s',
},
},
artistAlbum: {
marginTop: '2px',
@@ -117,7 +121,10 @@ const Player = () => {
)
const visible = authenticated && queue.queue.length > 0
const classes = useStyle({ visible })
const classes = useStyle({
visible,
enableCoverAnimation: config.enableCoverAnimation,
})
// Match the medium breakpoint defined in the material-ui theme
// See https://material-ui.com/customization/breakpoints/#breakpoints
const isDesktop = useMediaQuery('(min-width:810px)')
+1
View File
@@ -21,6 +21,7 @@ const defaultConfig = {
devEnableShare: true,
devEnableScrobble: true,
lastFMApiKey: '9b94a5515ea66b2da3ec03c12300327e',
enableCoverAnimation: false,
}
let config