This commit is contained in:
ditiqi 2025-02-23 21:43:01 +08:00
parent 508a6617fe
commit 09829ee211
1 changed files with 2 additions and 2 deletions

View File

@ -14,14 +14,14 @@ export default function Speed() {
return (
<>
<div className="relative flex items-center">
<button
<div
onClick={() => setIsSpeedOpen(!isSpeedOpen)}
className="text-white hover:text-primaryHover flex items-center">
<span className="text-xl font-bold mr-1">
{playbackSpeed === 1.0 ? "倍速" : `${playbackSpeed}x`}
</span>
<ChevronUpDownIcon className="w-10 h-10" />
</button>
</div>
{isSpeedOpen && (
<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2">
<div className="bg-black/80 rounded-lg p-2">