small fixes

This commit is contained in:
2026-03-01 19:48:29 -04:00
parent 364facd9f0
commit 1764adf0a5
15 changed files with 68 additions and 24 deletions

View File

@@ -337,10 +337,11 @@ export function StandardFormExplorer() {
<p className="text-sm text-muted">
{totalSteps === 0
? "Number is already in standard form position — power = 0"
: `Step ${currentStep} of ${totalSteps}`}
: `Step ${currentStep + 1} of ${totalSteps}`}
</p>
{/* Digit row */}
<div className="overflow-x-auto max-sm:pb-2">
<div ref={numberRowRef} className="relative inline-flex items-end gap-2.5 px-4 pb-7 pt-2">
{display.digits.map((ch, i) => {
const isLeadingZero = i < fz && fz !== -1;
@@ -372,6 +373,7 @@ export function StandardFormExplorer() {
}}
/>
</div>
</div>
{/* Direction label */}
{dirText && (
@@ -403,7 +405,7 @@ export function StandardFormExplorer() {
{/* Controls */}
<Card className="p-4">
<StepControls
currentStep={currentStep}
currentStep={currentStep + 1}
totalSteps={totalSteps}
isPlaying={isPlaying}
onStepForward={stepForward}