Skip to content

feat(player): marquee current program titles - #750

Merged
stackia merged 2 commits into
mainfrom
codex/747-program-title-marquee
Sep 6, 2026
Merged

stackia merged 2 commits into
mainfrom
codex/747-program-title-marquee

Conversation

@stackia

@stackia stackia commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add animated horizontal scrolling for truncated current-program titles.
  • Pause at both ends and animate at a steady 30px/s.
  • Respect reduced-motion preferences and respond to container/text resizing.
  • Preserve group labels and existing behavior for non-current channels.

Testing

  • Not run (not requested).

Note

Low Risk
Player list UI-only change with no auth, data, or API impact; animation is gated by reduced-motion and cleaned up on unmount.

Overview
For the currently selected channel, long current program titles now scroll horizontally instead of being clipped by a single truncate on the whole subtitle row.

A new CurrentProgramTitle component drives a round-trip marquee via the Web Animations API (30px/s, 1.5s pauses at each end). It recomputes on resize (ResizeObserver), honors prefers-reduced-motion (static truncate), and resets when the program string changes (key={currentProgram}). The subtitle row becomes a flex layout: group label stays truncated (max half width) with a separator, and the program title gets the remaining space.

Non-current channels and rows without a current program keep the previous truncate behavior for group + program text.

Reviewed by Cursor Bugbot for commit db0bebf. Configure here.

@cursor

cursor Bot commented Sep 6, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_12c83e64-de72-4aa9-9ac7-4c7d84d85380)

@stackia stackia closed this Sep 6, 2026
@stackia stackia reopened this Sep 6, 2026
@stackia
stackia merged commit 13421c3 into main Sep 6, 2026
19 of 20 checks passed
@stackia
stackia deleted the codex/747-program-title-marquee branch September 6, 2026 09:31
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Documentation preview

The documentation preview has been deployed for this pull request.

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