Better behaviour of Prev/Next buttons when share has only one song:

- Allow Prev to restart the song
- Disable Next
This commit is contained in:
Deluan
2023-01-31 21:25:40 -05:00
parent aaf58bbd32
commit d683297fa7
2 changed files with 17 additions and 7 deletions
+2 -6
View File
@@ -80,14 +80,10 @@ const useStyle = makeStyles(
},
'& .music-player-panel .panel-content .progress-bar-content section.audio-main':
{
display: (props) => {
return props.isRadio ? 'none' : 'inline-flex'
},
display: (props) => (props.isRadio ? 'none' : 'inline-flex'),
},
'& .react-jinke-music-player-mobile-progress': {
display: (props) => {
return props.isRadio ? 'none' : 'flex'
},
display: (props) => (props.isRadio ? 'none' : 'flex'),
},
},
}),