Skip to content

fix(web): align premiere badge inline with time left - #1070

Merged
Quick104 merged 1 commit into
mainfrom
t3code/continue-watching-card-spacing
Sep 13, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3code/continue-watching-card-spacing

Conversation

@Quick104

@Quick104 Quick104 commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A — narrow fix

The Continue Watching card rendered the premiere badge and the time-left label as separate stacked rows. The badge sat on its own line under the progress text, so it broke the card's vertical rhythm and consumed extra height compared to the rest of the card content.

Approach

Render both the time-left label and the premiere badge inside a single flex row when either is present. The badge is marked shrink-0 so it keeps its pill shape while the label truncates, and the label picks up truncate so long text clips cleanly instead of pushing the badge out of the row. Behavior is unchanged when only one of the two is present; the row is simply skipped when neither applies.

Validation

  • make test-web
  • Verified the card in a browser against a real backend for the cases: badge only, time left only, and both together.

Risks

None identified. Web-only presentational change; no API, data, or behavior change.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: opencode
  • Tool(s): opencode
  • Model(s): deepseek-v4.1-flash
  • Involvement: AI-assisted
  • Adversarial review: n/a — narrow presentational fix

Summary by CodeRabbit

  • Style
    • Improved the Continue Watching card layout by displaying premiere badges and time-remaining labels together in a consistent row.
    • Added text truncation for longer time-remaining labels to help prevent layout overflow.

- Render the premiere badge beside the time-left label instead of on its own row
- Truncate the time-left link so the badge stays visible in narrow cards
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 13, 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-09-13T19:50:07.000023Z ed0388d 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.

@Quick104
Quick104 merged commit 791b57c into main Sep 13, 2026
4 of 5 checks passed
@Quick104
Quick104 deleted the t3code/continue-watching-card-spacing branch September 13, 2026 19:49
@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e8ab5051-b1e4-498f-adb2-714568f94884

📥 Commits

Reviewing files that changed from the base of the PR and between 60b903e and ed0388d.

📒 Files selected for processing (1)
  • web/src/components/ContinueWatchingCard.tsx

📝 Walkthrough

Walkthrough

The card now renders the time-left label and premiere badge in one flex row. The label can truncate, and the badge keeps its size.

Changes

Continue Watching metadata

Layer / File(s) Summary
Combined metadata row
web/src/components/ContinueWatchingCard.tsx
The metadata block uses one conditional flex row with gap-1.5. The badge no longer uses mt-1 and gains shrink-0. The time-left link gains truncate.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: blurbery

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t3code/continue-watching-card-spacing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

The PR should not merge until the time-left flex item can shrink and truncate beside the premiere badge on narrow cards.

Findings

  1. P1 Label Cannot Truncate ▶

Reviews (1) · Last reviewed commit: "fix(web): align premiere badge inline wi..."

) : (
<ViewTransitionLink
to={isMangaChapter ? card.watchHref : card.itemHref}
className="text-muted-foreground block w-fit truncate text-xs hover:underline"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Label Cannot Truncate

On narrow poster cards, an episode can show both a minutes-left label and a non-shrinking premiere badge. This flex item retains its automatic minimum width, so truncate cannot shorten the label and the combined row can overflow the card.

Suggested change
className="text-muted-foreground block w-fit truncate text-xs hover:underline"
className="text-muted-foreground block min-w-0 w-fit truncate text-xs hover:underline"

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@Quick104 Quick104 mentioned this pull request Nov 26, 2026
17 tasks
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