@@ -221,30 +221,32 @@ const ListenToPlayer = ({ slug }: { slug: string }) => {
221
221
className = { cn (
222
222
showWidget ? "block" : "hidden" ,
223
223
isExpanded ? "bottom-4" : "bottom-0" ,
224
- "fixed left-1/2 right-auto z-[9999 ] -translate-x-1/2 sm:left-auto sm:right-5 sm:translate-x-0"
224
+ "fixed left-1/2 right-auto z-[5000 ] -translate-x-1/2 sm:left-auto sm:right-5 sm:translate-x-0"
225
225
) }
226
226
>
227
- < PlayerWidget
228
- autoplay = { autoplay }
229
- setAutoplay = { setAutoplay }
230
- isExpanded = { isExpanded }
231
- setIsExpanded = { setIsExpanded }
232
- title = {
233
- countdown > 0
234
- ? `${ t ( playlist [ currentTrackIndex + 1 ] . title ) } in ${ countdown } s`
235
- : t ( playlist [ currentTrackIndex ] . title )
236
- }
237
- duration = { duration }
238
- timeRemaining = { timeRemaining }
239
- onSeek = { handleSeek }
240
- isPlaying = { isPlaying }
241
- handlePlayPause = { handlePlayPause }
242
- handlePrevious = { handlePrevious }
243
- handleNext = { handleNext }
244
- playbackSpeed = { playbackSpeed }
245
- handlePlaybackSpeed = { handlePlaybackSpeed }
246
- handleCloseWidget = { handleCloseWidget }
247
- />
227
+ < div className = "relative" >
228
+ < PlayerWidget
229
+ autoplay = { autoplay }
230
+ setAutoplay = { setAutoplay }
231
+ isExpanded = { isExpanded }
232
+ setIsExpanded = { setIsExpanded }
233
+ title = {
234
+ countdown > 0
235
+ ? `${ t ( playlist [ currentTrackIndex + 1 ] . title ) } in ${ countdown } s`
236
+ : t ( playlist [ currentTrackIndex ] . title )
237
+ }
238
+ duration = { duration }
239
+ timeRemaining = { timeRemaining }
240
+ onSeek = { handleSeek }
241
+ isPlaying = { isPlaying }
242
+ handlePlayPause = { handlePlayPause }
243
+ handlePrevious = { handlePrevious }
244
+ handleNext = { handleNext }
245
+ playbackSpeed = { playbackSpeed }
246
+ handlePlaybackSpeed = { handlePlaybackSpeed }
247
+ handleCloseWidget = { handleCloseWidget }
248
+ />
249
+ </ div >
248
250
</ div >
249
251
</ Portal >
250
252
</ >
0 commit comments