录音回放改为单个播放按钮(无进度条),与单词读音一致

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-08-05 21:10:45 +08:00
co-authored by Claude Opus 4.8
parent b8db3ae707
commit 566d80311a
3 changed files with 35 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import { ChildManage } from "./child-manage";
import { DevicesTab } from "./devices-tab";
import { OverviewTab } from "./overview-tab";
import { TemplatesTab } from "./templates-tab";
import { PlayBtn } from "@/components/play-audio";
export type DayCell = {
done: number;
@@ -156,7 +157,7 @@ export function ParentDashboard({
<div key={i} className="flex items-center gap-2 text-sm">
<span className="w-16 shrink-0 text-xs text-muted-foreground">{r.childName}</span>
<span className="w-20 shrink-0 font-medium text-slate-800">{r.word}</span>
<audio controls src={r.url} className="h-8 flex-1" />
<PlayBtn src={r.url} />
</div>
))}
</div>