Skip to content

[Good First Issue] Format trim times as MM:SS instead of raw seconds #78

Description

@magic-peach

Overview

The trim control shows time in raw seconds (e.g., 65.5). Displaying as 01:05.5 (MM:SS.d) is much more user-friendly.

Task

In src/components/TrimControl.tsx, add a helper function:

function formatTime(seconds: number): string {
  const m = Math.floor(seconds / 60)
  const s = (seconds % 60).toFixed(1)
  return `${String(m).padStart(2, '0')}:${String(s).padStart(4, '0')}`
}

Use this to display the duration and current trim values.

Acceptance Criteria

  • Duration shown as MM:SS format
  • Trim input labels show formatted time
  • Inputs still accept numeric seconds for editing

Good first issue — estimated effort: 30 minutes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions