Repository navigation
fix(web): the Fix action on a thread details PR row stays inside the card - #31115
pouyarezvani wants to merge 4 commits into
Conversation
…card On a watched pull request whose checks show a count, the row's metadata line (number, checks count, watch icon, trailing action) is wider than the 280px thread details card. Every control on it is shrink-0 and nowrap, so the card clipped the Fix action at its right edge. The checks count control now shrinks and its label truncates, so the trailing action always stays fully visible. Closes pingdotgg#31113 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The checks label can shrink and truncate so the Fix action stays inside the thread PR card. This is a localized presentation change with existing actions and check details unchanged. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Note Written by Takeover update. The fix itself is unchanged.
Real Before (main): Fix is clipped at the card edge. After (this PR): the count truncates and Fix stays inside the card. |
AI-assisted; verified with the tests and tools listed above.
|
The automated pipeline stopped on this pull request and will not merge it: in the real app the problem is still there, and the rework changed nothing: No code change this round; the branch stays at 3ba7811. This round's item lists the proof steps (16/17 checks, capture Fix, click Fix, capture Preparing...) but does not say what went wrong at this head, and the PR comments hold no failure detail for 3ba7811. I checked it against the code by rendering the real ThreadDetailsPrRow with the app stylesheet (index.css) in the browser test runner, at the card's real geometry: a 280px card with the section's px-2, so a 264px row whose contents must end at 262px. Setup: PR https://git.cafe/pingdotgg/t3code/pulls/31115 with 15 passing, 1 failed and 1 pending check, the watch icon shown, and the handoff mocked to pending for the Preparing state. On main's classes the bug reproduces: Fix ends at 286.5px and Preparing... at 339px, past the card edge at 272px. At head both states end at 262px: Fix with the count shown as '16/17 …', and Preparing... with the count text hidden and the checks icon kept, as last round intended. A 3x screenshot of both head states shows every control inside the card. The rule for this round was to fix what the code confirms and explain anything it doesn't. The measured head is correct, so I made no change rather than add code to satisfy an item with no observed failure. If the proof run still sees a failure at this head, it needs to report what it saw (for example an element's right edge, or which control overflows) so it can be reproduced. AI-assisted; verified with the tests and tools listed above. It stays open for a person to finish or close. |
|
@juliusmarminge @maria-rcks Thanks both for picking this up and for the extra commit that hides the count while the action is pending. From the pipeline's last note, the current head ( If the proof run saw something different, I'm happy to dig in. Just let me know which control it reported overflowing and I'll reproduce it in the desktop app. Otherwise, is this ready to merge? |
|
One more data point on the pipeline's "still there in the real app" note: this is the bug as it looks today in the shipped desktop app, without this PR. On each row with a failing check, the red Fix button is cut off at the card's right edge (#10752 and #10759 here). I blurred the PR titles because they're from a private repo. On this PR's head ( |



Problem
On a watched pull request whose checks show a count, the thread details row's metadata line (
#number, "16/17 checks", the watch icon and the trailing action) is wider than the 280px card. Every control on that line isshrink-0andwhitespace-nowrap, so nothing gives way and the card clips the Fix action at its right edge. Longer counts, or the "Preparing..." label after clicking Fix, clip it further.Closes #31113.
Change
On this row, the checks count control can shrink (
min-w-0 shrink, whichcnresolves over the control'sshrink-0), and the count label truncates with an ellipsis. When space runs out, the label gives way and the trailing action (Fix, Merge, Resolve, Ready or its pending label) stays fully visible.variant="count"is only used by this row, so other checks badges are unchanged.Scope and approval
A very small, focused fix for an obvious layout bug: an action button clipped by its container. It changes two class lists and no behavior. Reported in #31113.
Verification
Reproduced in 0.1.8-nightly.20261104.4179 (macOS desktop app). The card's edge cuts through Fix:
Before and after: I rendered the row's markup with its exact Tailwind classes at the card's 280px width (Tailwind 4, dark theme tokens), merging conflicting classes the way
cndoes. "Before" matches the nightly. "After" keeps Fix and "Preparing..." inside the card, and the count truncates instead:Ran tailwind-merge 3.4.0 with the app's
extendTailwindMergeconfig:cn(<meta control classes>, "min-w-0 shrink")dropsshrink-0and keepsmin-w-0 shrink.Not checked: I did not run the dev app or
vp run check:changed, because dependencies were not installed in this checkout. As a purely visual fix, it ships with captures and no test, per AGENTS.md.Written by Claude Opus 5.5 in Claude Code, running inside T3 Code.
🤖 Generated with Claude Code