mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-22 14:37:30 +08:00
feat: adjust episodes button
This commit is contained in:
@@ -1114,7 +1114,13 @@ function PlayPageClient() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{totalEpisodes > 1 && (
|
{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} 集
|
第 {currentEpisodeIndex + 1} 集 / 共 {totalEpisodes} 集
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -1377,22 +1383,7 @@ function PlayPageClient() {
|
|||||||
) : null,
|
) : null,
|
||||||
beforeFullscreenButton: (
|
beforeFullscreenButton: (
|
||||||
<>
|
<>
|
||||||
{totalEpisodes > 1 && (
|
|
||||||
<button
|
|
||||||
className='vds-button mr-2'
|
|
||||||
onClick={() => {
|
|
||||||
setShowEpisodePanel(true);
|
|
||||||
playerContainerRef.current?.focus();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
选集
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
<PlaybackRateButton playerRef={playerRef} />
|
<PlaybackRateButton playerRef={playerRef} />
|
||||||
{/* 自定义 AirPlay 按钮 */}
|
|
||||||
<AirPlayButton className='vds-button'>
|
|
||||||
<AirPlayIcon className='vds-icon' />
|
|
||||||
</AirPlayButton>
|
|
||||||
<button
|
<button
|
||||||
className='vds-button'
|
className='vds-button'
|
||||||
aria-label={blockAdEnabled ? '关闭去广告' : '开启去广告'}
|
aria-label={blockAdEnabled ? '关闭去广告' : '开启去广告'}
|
||||||
@@ -1409,6 +1400,10 @@ function PlayPageClient() {
|
|||||||
>
|
>
|
||||||
<AdBlockIcon enabled={blockAdEnabled} />
|
<AdBlockIcon enabled={blockAdEnabled} />
|
||||||
</button>
|
</button>
|
||||||
|
{/* 自定义 AirPlay 按钮 */}
|
||||||
|
<AirPlayButton className='vds-button'>
|
||||||
|
<AirPlayIcon className='vds-icon' />
|
||||||
|
</AirPlayButton>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user