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

View File

@ -9,7 +9,7 @@ export default function Volume() {
<>
{/* 音量控制 */}
<div className="group relative flex items-center">
<button
<div
onClick={() => setIsMuted(!isMuted)}
className="text-white hover:text-primaryHover">
{isMuted ? (
@ -17,7 +17,7 @@ export default function Volume() {
) : (
<SpeakerWaveIcon className="w-10 h-10" />
)}
</button>
</div>
<div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200">
<div className="bg-black/80 rounded-lg p-2">
<input