add
This commit is contained in:
parent
508a6617fe
commit
09829ee211
|
@ -14,14 +14,14 @@ export default function Speed() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="relative flex items-center">
|
<div className="relative flex items-center">
|
||||||
<button
|
<div
|
||||||
onClick={() => setIsSpeedOpen(!isSpeedOpen)}
|
onClick={() => setIsSpeedOpen(!isSpeedOpen)}
|
||||||
className="text-white hover:text-primaryHover flex items-center">
|
className="text-white hover:text-primaryHover flex items-center">
|
||||||
<span className="text-xl font-bold mr-1">
|
<span className="text-xl font-bold mr-1">
|
||||||
{playbackSpeed === 1.0 ? "倍速" : `${playbackSpeed}x`}
|
{playbackSpeed === 1.0 ? "倍速" : `${playbackSpeed}x`}
|
||||||
</span>
|
</span>
|
||||||
<ChevronUpDownIcon className="w-10 h-10" />
|
<ChevronUpDownIcon className="w-10 h-10" />
|
||||||
</button>
|
</div>
|
||||||
{isSpeedOpen && (
|
{isSpeedOpen && (
|
||||||
<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2">
|
<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2">
|
||||||
<div className="bg-black/80 rounded-lg p-2">
|
<div className="bg-black/80 rounded-lg p-2">
|
||||||
|
|
Loading…
Reference in New Issue