From 8017e994f49e925a3cc6cfc0696cc7cbb4989b2a Mon Sep 17 00:00:00 2001 From: truewhile <62226914+truewhile@users.noreply.github.com> Date: Thu, 17 Sep 2026 22:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/PlayerControls.tsx | 43 +++++++---------------- web/src/components/PlayerDanmakuPanel.tsx | 5 +-- web/src/pages/PlayerPage.tsx | 1 - web/src/pages/PlayerVideoStage.tsx | 4 --- 4 files changed, 15 insertions(+), 38 deletions(-) diff --git a/web/src/components/PlayerControls.tsx b/web/src/components/PlayerControls.tsx index 0e57bd3..550bb15 100644 --- a/web/src/components/PlayerControls.tsx +++ b/web/src/components/PlayerControls.tsx @@ -10,7 +10,6 @@ import { Loader2, Lock, Maximize, - MessageSquareText, Minimize, Pause, PictureInPicture, @@ -155,10 +154,12 @@ type PlayerControlsProps = { onSubtitleStyleChange: (style: SubtitleStylePreset) => void /** 弹幕设置面板是否打开。 */ danmakuOpen: boolean - /** 弹幕当前是否渲染在画面上(操作栏上的「弹」开关)。 */ + /** 弹幕当前是否渲染在画面上:操作栏的「弹」按钮用它显示开关状态。 */ danmakuEnabled: boolean - onToggleDanmakuEnabled?: (next: boolean) => void - /** 打开弹幕设置面板(弹幕服务的搜索与参数都在那里)。 */ + /** + * 打开弹幕设置面板。弹幕的加载开关、来源搜索、渲染参数都收在这个面板里, + * 所以「弹」按钮直接指向它——不再经过「设置」面板中转。 + */ onOpenDanmaku?: () => void hasPrevEpisode?: boolean hasNextEpisode?: boolean @@ -217,7 +218,6 @@ export function PlayerControls({ onSubtitleStyleChange, danmakuOpen, danmakuEnabled, - onToggleDanmakuEnabled, onOpenDanmaku, hasPrevEpisode = false, hasNextEpisode = false, @@ -1021,27 +1021,6 @@ export function PlayerControls({ )} - - {onOpenDanmaku && ( -
弹幕
- -