CODEX - Probably fixed the download buttons

This commit is contained in:
2026-02-23 11:03:03 +02:00
parent 3a2362b7fd
commit be0b3a5a5a
4 changed files with 130 additions and 61 deletions

View File

@@ -320,7 +320,6 @@ export default function PlaybackModal({ open, melody, builtMelody, files, archet
<div className="space-y-4">
<div className="flex items-center justify-between">
<span className="text-xs" style={mutedStyle}>{totalSteps} steps · {allBellsUsed.size} bell{allBellsUsed.size !== 1 ? "s" : ""}</span>
{currentStep >= 0 && <span className="text-xs font-mono" style={{ color: "var(--accent)" }}>Step {currentStep + 1} / {totalSteps}</span>}
</div>
{noteAssignments.length > 0 && (
@@ -392,6 +391,21 @@ export default function PlaybackModal({ open, melody, builtMelody, files, archet
<input type="checkbox" checked={loopEnabled} onChange={(e) => setLoopEnabled(e.target.checked)} className="h-3.5 w-3.5 rounded" />
Loop
</label>
{currentStep >= 0 && (
<div className="ml-auto min-w-[180px]">
<div className="flex items-center justify-end gap-2">
<span className="text-xs font-mono" style={{ color: "var(--accent)" }}>
Step {currentStep + 1} / {totalSteps}
</span>
</div>
<div className="mt-1 h-1.5 rounded-full" style={{ backgroundColor: "var(--bg-primary)", border: "1px solid var(--border-primary)" }}>
<div
className="h-full rounded-full"
style={{ width: `${Math.max(0, Math.min(100, ((currentStep + 1) / totalSteps) * 100))}%`, backgroundColor: "var(--accent)" }}
/>
</div>
</div>
)}
</div>
<div>