Skip to content

Commit 50c8b1e

Browse files
committed
fix(classroom): 最近画面按时间先后排列
1 parent e7e29b9 commit 50c8b1e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎app/src/components/LiveImageStrip.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export default function LiveImageStrip({ sessionId }: { sessionId: number | null
8686
}, [refresh, refreshThrottled, sessionId]);
8787

8888
if (!sessionId) return null;
89-
const shown = images.slice(-MAX_SHOWN).reverse(); // 最新在前
89+
// 2026-08 用户需求:最近画面按时间先后排列——后端 list_session_images
90+
// 已按文件名(=时间戳)升序返回,此处不再 reverse(前→后 = 旧→新,新图追加在末尾)
91+
const shown = images.slice(-MAX_SHOWN);
9092

9193
return (
9294
<div style={{ border: "1px solid #e5e7eb", borderRadius: 8, padding: 8, marginBottom: 8, background: "#fff" }}>

0 commit comments

Comments
 (0)