From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/audio-btn/index.tsx | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/app/components/base/audio-btn/index.tsx b/app/components/base/audio-btn/index.tsx
index 2a54a8e..593411e 100644
--- a/app/components/base/audio-btn/index.tsx
+++ b/app/components/base/audio-btn/index.tsx
@@ -29,7 +29,7 @@
const params = useParams()
const pathname = usePathname()
- const audio_finished_call = (event: string): void => {
+ const audio_finished_call = (event: string): any => {
switch (event) {
case 'ended':
setAudioState('ended')
@@ -87,18 +87,18 @@
>
<button
disabled={audioState === 'loading'}
- className={`box-border flex h-6 w-6 cursor-pointer items-center justify-center ${isAudition ? 'p-0.5' : 'rounded-md bg-white p-0'}`}
+ className={`box-border w-6 h-6 flex items-center justify-center cursor-pointer ${isAudition ? 'p-0.5' : 'p-0 rounded-md bg-white'}`}
onClick={handleToggle}
>
{audioState === 'loading'
? (
- <div className='flex h-full w-full items-center justify-center rounded-md'>
+ <div className='w-full h-full rounded-md flex items-center justify-center'>
<Loading />
</div>
)
: (
- <div className={'flex h-full w-full items-center justify-center rounded-md hover:bg-gray-50'}>
- <div className={`h-4 w-4 ${(audioState === 'playing') ? s.pauseIcon : s.playIcon}`}></div>
+ <div className={`w-full h-full rounded-md flex items-center justify-center ${!isAudition ? 'hover:bg-gray-50' : 'hover:bg-gray-50'}`}>
+ <div className={`w-4 h-4 ${(audioState === 'playing') ? s.pauseIcon : s.playIcon}`}></div>
</div>
)}
</button>
--
Gitblit v1.8.0