Skip to content

fix(media): give a narrow player's seek bar a row of its own - #276

Merged
vite-hub[bot] merged 3 commits into
mainfrom
fix/media-narrow-seek-row
Oct 30, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
fix/media-narrow-seek-row

Conversation

@onmax

@onmax onmax commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

On a phone the seek bar shared one row with the two times and the buttons. At a 327 px player (a 375 px phone), with the 40 px touch buttons and a video over an hour long, it got 45 px, about two thumbs wide. Between 18rem and about 26rem it was narrower than below 18rem, where the times dropped.

Below 24rem the seek bar now gets a row of its own above the buttons, and the times sit together after the play button as 12:34 / 1:02:03. Below 16rem the times drop, so a video's full screen button never wraps to a third row. At 24rem and wider nothing changes; just above it, one row still leaves the seek bar 138 px or more.

Video player Seek bar before After
288 px 112 px, times hidden 256 px, times shown
327 px 45 px 295 px
375 px 93 px 343 px
520 px 238 px 238 px, one row

The rest of the seek bar was --comark-accent, #f5f5f5 on a white bar, about 1.1:1, which shows more now that a narrow player's bar runs its full width. It's now the foreground at 25% (about 1.8:1 in light, 2:1 in dark), and the docs' token table says so.

Before and after, at 327 px and in the gallery: https://drop.vitehub.dev/d/spb9ykhhfa86/comark-media-narrow-seek-row. The gallery's frames are about 448 px wide, so its media row is the same as on main.

Measured in Chromium as a Pixel 7 and as desktop Chrome, video and audio, from 240 px to 900 px; no bar overflows. A new e2e test checks that an 18rem audio player puts the seek bar above the play button at more than 90% of the bar's width, and a 32rem one keeps one row; it fails on main. pnpm ready passes.

Same problem as vite-hub/drop#91 in Drop's media-chrome viewer, fixed here for comark-media's own bar.

🤖 Generated with Claude Code

On a phone the seek bar shared one row with the two times and the buttons, so at a 327 px player with touch buttons
and an hour-long video it got 45 px. Below 24rem it now sits on its own row above the buttons, with the times together
after the play button; below 16rem the times drop as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T10:39:20.186996Z c6fe3ca PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vite-hub

vite-hub Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Last seen running 2026-10-30T11:02:18.795Z 0s
View session Completed 2026-10-30T10:49:56.916Z 5m 20s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for GitHub merge request a93182f4-32ce-4575-9fe2-76a83f6f5b69.

Session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

Session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

Session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

Session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

Session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

Session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

View session

Fixed Pullfrog P1 third-row wrapping, reproduced at 288px with the supported monospace font. Touch-video timestamps now hide below 18rem; documentation and boundary coverage updated. Media Playwright: 8 passed; package vp test: 14 passed; focused typed lint, formatting and git diff --check passed. Pushed 17c5868 and resolved the thread; awaiting CI.

The accent, #f5f5f5 on a white bar, left the unplayed track nearly invisible, which shows more now that a narrow
player's seek bar runs the bar's width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The new 16rem time cutoff can still produce a third control row on narrow touch video players with hour-long timestamps.

Reviewed changes in c6fe3ca: the responsive media control layout, its documentation, and the new browser geometry test.

  • Responsive control bar — Below 24rem, the seek input moves to a full-width first row and the two times are grouped after Play; below 16rem, the times are hidden.
  • Coverage — The Playwright test compares an 18rem audio player’s two-row layout with the existing 32rem single-row layout.
  • Documentation — The Theme section now describes both responsive breakpoints.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

Comment thread packages/media/src/styles.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-annotate@276

comark-badge

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-badge@276

comark-cards

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cards@276

comark-carousel

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-carousel@276

comark-cast

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cast@276

comark-charts

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-charts@276

comark-chat

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-chat@276

comark-chips

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-chips@276

comark-cjk

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cjk@276

comark-code

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-code@276

comark-code-notes

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-code-notes@276

comark-colors

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-colors@276

comark-comments

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-comments@276

comark-critic

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-critic@276

comark-deflist

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-deflist@276

comark-details

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-details@276

comark-diagrams

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-diagrams@276

comark-diff

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-diff@276

comark-embed

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-embed@276

comark-fields

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-fields@276

comark-figure

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-figure@276

comark-file-tree

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-file-tree@276

comark-footnotes

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-footnotes@276

comark-github

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-github@276

comark-icon

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-icon@276

comark-include

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-include@276

comark-keys

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-keys@276

comark-links

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-links@276

comark-linter

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-linter@276

comark-magic-move

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-magic-move@276

comark-mark

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-mark@276

comark-mathml

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-mathml@276

comark-media

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-media@276

comark-metrics

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-metrics@276

comark-outline

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-outline@276

comark-properties

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-properties@276

comark-qr

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-qr@276

comark-quiz

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-quiz@276

comark-reading-time

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-reading-time@276

comark-sources

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-sources@276

comark-steps

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-steps@276

comark-table

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-table@276

comark-tabs

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-tabs@276

comark-tests

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-tests@276

comark-ui

pnpm add https://pkg.pr.new/onmax/comark-ui@276

comark-xref

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-xref@276

comark-zoom

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-zoom@276

commit: 17c5868

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No new issues in the incremental change. The prior must-address responsive-layout finding remains open because this commit only changes the seek track's unplayed color and documentation.

Reviewed changes since the prior Pullfrog review: the seek track now uses a faded foreground color instead of the accent token.

  • Seek track color — Changed the unplayed range segment to a 25% foreground mix so it remains visible when the accent barely contrasts with the control bar.
  • Theme documentation — Updated the shared-token table to attribute the unplayed range segment to --comark-foreground rather than --comark-accent.

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

onmax added a commit to vite-hub/drop that referenced this pull request Oct 30, 2026
…me fix for Markdown videos

The video viewer's track was --border on the bar, barely visible. It's now the foreground at 25%, as in comark-media.

comark-ui moves to onmax/comark-ui#276's preview, where a narrow Markdown video or audio player gets its seek bar on a
row of its own and the same faded track. That build includes the zoomed screenshot Copy in the zoom header
(onmax/comark-ui#274), so the comark-annotate@0.7.2 patch that backported it goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes since the prior Pullfrog review: the narrow touch-video layout now accounts for long timestamps and has browser geometry coverage at the responsive boundary.

  • Touch-video cutoff — Hid video timestamps below 18rem on coarse pointers so the larger Play, Mute, and Full screen buttons remain on one controls row.
  • Boundary coverage — Added a coarse-pointer video test with hour-form timestamps across 240px to 375px, checking timestamp visibility, seek width, button alignment, and overflow.
  • Theme guidance — Documented the touch-specific cutoff alongside the existing 24rem seek-row and 16rem general time cutoffs.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@vite-hub
vite-hub Bot merged commit 575fefc into main Oct 30, 2026
5 checks passed
@vite-hub
vite-hub Bot deleted the fix/media-narrow-seek-row branch October 30, 2026 11:05
@github-actions github-actions Bot mentioned this pull request Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant