Skip to content

Fix hardcoded min suffix for MM:SS video durations in UI #1052

@icoderarely

Description

@icoderarely

Current Behavior

The video duration value is displayed with a hardcoded min suffix in layouts/partials/video-landing-page.html. When the duration is provided in MM:SS format (e.g., "0:16"), the UI renders it incorrectly as:

  • 0:16 min

This creates a confusing and inconsistent duration label for users.

Expected Behavior

The UI should correctly display video durations instead of always appending a hardcoded min suffix.

Examples:

  • 0:16 → displayed as 0:16

Screenshots/Logs

Image

Asked by Gemini on one of my PRs, which got my attention that yeah we gotta fix this

Image

Environment

  • Host OS: Mac Linux Windows
  • Browser: Chrome Safari Firefox Edge Opera

Contributor Guide and Resources

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions