feat: adjust episodes button

This commit is contained in:
shinya
2025-06-29 17:13:27 +08:00
parent 345dfaff39
commit ef7278088e

View File

@@ -1114,7 +1114,13 @@ function PlayPageClient() {
</div>
{totalEpisodes > 1 && (
<div className='text-gray-300 text-sm mt-0.5'>
<div
className='text-gray-300 text-sm mt-0.5 cursor-pointer'
onClick={() => {
setShowEpisodePanel(true);
playerContainerRef.current?.focus();
}}
>
{currentEpisodeIndex + 1} / {totalEpisodes}
</div>
)}
@@ -1377,22 +1383,7 @@ function PlayPageClient() {
) : null,
beforeFullscreenButton: (
<>
{totalEpisodes > 1 && (
<button
className='vds-button mr-2'
onClick={() => {
setShowEpisodePanel(true);
playerContainerRef.current?.focus();
}}
>
</button>
)}
<PlaybackRateButton playerRef={playerRef} />
{/* 自定义 AirPlay 按钮 */}
<AirPlayButton className='vds-button'>
<AirPlayIcon className='vds-icon' />
</AirPlayButton>
<button
className='vds-button'
aria-label={blockAdEnabled ? '关闭去广告' : '开启去广告'}
@@ -1409,6 +1400,10 @@ function PlayPageClient() {
>
<AdBlockIcon enabled={blockAdEnabled} />
</button>
{/* 自定义 AirPlay 按钮 */}
<AirPlayButton className='vds-button'>
<AirPlayIcon className='vds-icon' />
</AirPlayButton>
</>
),
}}