Skip to content

Commit 69bd058

Browse files
committed
fix(classroom): 采集信息条常显未知项占位
1 parent b40b907 commit 69bd058

1 file changed

Lines changed: 36 additions & 35 deletions

File tree

‎app/src/components/LiveActivityPanel.tsx‎

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -285,41 +285,42 @@ export default function LiveActivityPanel({ sessionId }: { sessionId?: number |
285285
</div>
286286

287287
{/* v0.7.2(REQ-151):采集信息条(平台/时长/合集/字幕——信息透明化;
288-
数据源:标题信号 + 播放器 OCR + 字幕检测计数;全空时不占位) */}
289-
{info &&
290-
(info.platform ||
291-
info.durationSecs != null ||
292-
info.series ||
293-
info.episode ||
294-
counts.subtitle > 0) && (
295-
<div
296-
style={{
297-
display: "flex",
298-
gap: 12,
299-
flexWrap: "wrap",
300-
padding: "6px 14px",
301-
borderBottom: "1px solid #e5e7eb",
302-
fontSize: 11,
303-
color: "#6b7280",
304-
alignItems: "center",
305-
}}
306-
>
307-
{info.platform && <span>🎬 {info.platform}</span>}
308-
{info.durationSecs != null && (
309-
<span title="播放器画面识别(OCR)">⏱ 时长 {fmtDur(info.durationSecs)}</span>
310-
)}
311-
{info.series && (
312-
<span title="合集(标题序列号识别)">
313-
📚 {info.series}
314-
{info.episode != null ? ` 第${info.episode}集` : ""}
315-
{info.totalEpisodes != null ? ` / 共${info.totalEpisodes}集` : ""}
316-
</span>
317-
)}
318-
<span title={counts.subtitle > 0 ? "实时字幕检测命中" : "尚未检测到内嵌/滚动字幕"}>
319-
{counts.subtitle > 0 ? "💬 字幕:检测到(内嵌/滚动)" : "💬 字幕:未检测到"}
320-
</span>
321-
</div>
322-
)}
288+
数据源:标题信号 + 播放器 OCR + 字幕检测计数。
289+
修复(2026-08 用户反馈):**采集态常显**——此前"有信息才显示"导致
290+
本地窗口/无平台后缀/无合集/OCR 未出结果时整条隐藏(右侧空白);
291+
未知项用占位文案(诚实标注,不假装),信息条始终占用该区域 */}
292+
{info && (
293+
<div
294+
style={{
295+
display: "flex",
296+
gap: 12,
297+
flexWrap: "wrap",
298+
padding: "6px 14px",
299+
borderBottom: "1px solid #e5e7eb",
300+
fontSize: 11,
301+
color: "#6b7280",
302+
alignItems: "center",
303+
}}
304+
>
305+
<span title="窗口标题后缀识别(本地)">
306+
🎬 {info.platform ?? "未知平台"}
307+
</span>
308+
<span title="播放器画面识别(OCR,约 10s 出结果)">
309+
⏱ 时长 {info.durationSecs != null ? fmtDur(info.durationSecs) : "识别中…"}
310+
</span>
311+
<span title="合集(标题序列号识别 + 播放器 OCR)">
312+
📚{" "}
313+
{info.series
314+
? `${info.series}${info.episode != null ? ` 第${info.episode}集` : ""}${
315+
info.totalEpisodes != null ? ` / 共${info.totalEpisodes}集` : ""
316+
}`
317+
: "非合集/未识别"}
318+
</span>
319+
<span title={counts.subtitle > 0 ? "实时字幕检测命中" : "尚未检测到内嵌/滚动字幕"}>
320+
{counts.subtitle > 0 ? "💬 字幕:检测到(内嵌/滚动)" : "💬 字幕:未检测到"}
321+
</span>
322+
</div>
323+
)}
323324

324325
{/* Tab 切换(简要两栏) */}
325326
<div style={{ display: "flex", gap: 4, padding: "8px 14px 0", flexShrink: 0 }}>

0 commit comments

Comments
 (0)