Skip to content

Commit f23b215

Browse files
committed
fix: center ListenToPlayer widget on mobile screens
1 parent 2dc93f1 commit f23b215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ListenToPlayer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const ListenToPlayer = ({ slug }: { slug: string }) => {
221221
className={cn(
222222
showWidget ? "block" : "hidden",
223223
isExpanded ? "bottom-4" : "bottom-0",
224-
"fixed left-0 right-0 z-[9999] mx-auto sm:left-auto sm:right-5 sm:mx-0"
224+
"fixed left-1/2 right-auto z-[9999] -translate-x-1/2 sm:left-auto sm:right-5 sm:translate-x-0"
225225
)}
226226
>
227227
<PlayerWidget

0 commit comments

Comments
 (0)