@@ -27,11 +27,14 @@ export default function PlayerFloating() {
2727
2828 return (
2929 < >
30- { audioRef ?. current && isOpen && (
31- < div className = "sticky inset-x-0 bottom-0 z-50 bg-background shadow-lg md:rounded-t-xl flex flex-col" >
32- < div className = "px-4 py-3 md:px-6 md:py-4" >
33- < div className = "flex items-center justify-between gap-2 md:gap-4" >
34- < div className = "flex items-center gap-4" >
30+ { audioRef ?. current && isOpen && podcast && (
31+ < div className = "sticky inset-x-0 bottom-0 z-50 bg-background shadow-lg rounded-t-xl flex flex-col border border-primary" >
32+ < div className = "px-4 py-3 md:px-6 md:py-4 flex flex-col gap-1" >
33+ < div className = "flex sm:hidden text-xs" >
34+ { podcast . title }
35+ </ div >
36+ < div className = "flex items-center justify-between gap-2 md:gap-4 flex-wrap-reverse" >
37+ < div className = "flex items-center gap-4 flex-1" >
3538 < Button variant = "ghost" size = "icon" onClick = { ( ) => audioRef . current ! . currentTime -= 30.0 } >
3639 < FaBackward className = "h-5 w-5" />
3740 </ Button >
@@ -48,8 +51,6 @@ export default function PlayerFloating() {
4851 < Button variant = "ghost" size = "icon" onClick = { ( ) => audioRef . current ! . currentTime += 30.0 } >
4952 < FaForward className = "h-5 w-5" />
5053 </ Button >
51- </ div >
52- < div className = "flex-1" >
5354 < Slider
5455 className = "[&>span:first-child]:h-1 [&>span:first-child]:bg-primary [&_[role=slider]]:bg-primary [&_[role=slider]]:w-3 [&_[role=slider]]:h-3 [&_[role=slider]]:border-0 [&>span:first-child_span]:bg-primary [&_[role=slider]:focus-visible]:ring-0 [&_[role=slider]:focus-visible]:ring-offset-0 [&_[role=slider]:focus-visible]:scale-105 [&_[role=slider]:focus-visible]:transition-transform"
5556 min = { 0 }
@@ -77,8 +78,6 @@ export default function PlayerFloating() {
7778 < SelectItem value = "2.0" > 2.0x</ SelectItem >
7879 </ SelectContent >
7980 </ Select >
80- </ div >
81- < div className = "flex items-center gap-4" >
8281 { volume === 0 ?
8382 < Button variant = "ghost" size = "icon" onClick = { max } >
8483 < FaVolumeXmark className = "h-5 w-5" />
@@ -89,7 +88,7 @@ export default function PlayerFloating() {
8988 </ Button >
9089 }
9190 < Slider
92- className = "w-20 [&>span:first-child]:h-1 [&>span:first-child]:bg-primary [&_[role=slider]]:bg-primary [&_[role=slider]]:w-3 [&_[role=slider]]:h-3 [&_[role=slider]]:border-0 [&>span:first-child_span]:bg-primary [&_[role=slider]:focus-visible]:ring-0 [&_[role=slider]:focus-visible]:ring-offset-0 [&_[role=slider]:focus-visible]:scale-105 [&_[role=slider]:focus-visible]:transition-transform"
91+ className = "min- w-20 [&>span:first-child]:h-1 [&>span:first-child]:bg-primary [&_[role=slider]]:bg-primary [&_[role=slider]]:w-3 [&_[role=slider]]:h-3 [&_[role=slider]]:border-0 [&>span:first-child_span]:bg-primary [&_[role=slider]:focus-visible]:ring-0 [&_[role=slider]:focus-visible]:ring-offset-0 [&_[role=slider]:focus-visible]:scale-105 [&_[role=slider]:focus-visible]:transition-transform"
9392 value = { [ volume ] }
9493 min = { 0 }
9594 max = { 100 }
@@ -98,7 +97,7 @@ export default function PlayerFloating() {
9897 } }
9998 />
10099 </ div >
101- < div className = "ml-auto flex items-center gap-4" >
100+ < div className = "ml-auto hidden lg: flex items-center gap-4" >
102101 { isMinimized ? (
103102 < Button variant = "ghost" size = "icon" onClick = { ( ) => setIsMinimized ( false ) } >
104103 < FaChevronUp className = "h-5 w-5" />
@@ -108,12 +107,14 @@ export default function PlayerFloating() {
108107 < FaChevronDown className = "h-5 w-5" />
109108 </ Button >
110109 ) }
110+ </ div >
111+ < div className = "ml-auto items-center gap-4 absolute top-0 right-0 sm:relative" >
111112 < Button variant = "ghost" size = "icon" onClick = { close } >
112113 < FaX className = "h-5 w-5" />
113114 </ Button >
114115 </ div >
115116 </ div >
116- { podcast && ! isMinimized && (
117+ { ! isMinimized && (
117118 < div className = "hidden lg:flex" >
118119 < div className = "w-48" >
119120 { podcast ?. spotify ?. itunes ?. image ?. href && (
0 commit comments