fix(web): prevent changed files header overlap - #6314
Merged
Conversation
Co-authored-by: Wout Stiens <71498452+StiensWout@users.noreply.github.com>
Co-authored-by: Wout Stiens <71498452+StiensWout@users.noreply.github.com>
Contributor
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Contributor
ApprovabilityVerdict: Approved 8723858 This PR contains only CSS class changes to fix visual overlap in the changed files header. The modifications are purely styling adjustments (overflow handling, flex properties, container queries) with no runtime logic changes. You can customize Macroscope's approvability policy. Learn more. |
github-actions Bot
added a commit
to omarcresp/t3code-flake
that referenced
this pull request
Aug 12, 2026
## What's Changed * fix(web): prevent changed files header overlap by @t3-code[bot] in pingdotgg/t3code#6314 * fix(web): theme Clerk surfaces by @StiensWout in pingdotgg/t3code#6300 * feat(web): reset sidebar width on double click by @extoci in pingdotgg/t3code#6320 **Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260812.1076...v0.0.34-nightly.20260812.1077 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260812.1077
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
screenshots
captured from the real dev app with the diff panel open and the same narrow 264px changed-files card.
before, light mode
stats collide with the full
Open diffaction.after, light mode
stats remain readable while the diff action collapses to its icon.
before, dark mode
stats collide with the full
Open diffaction.after, dark mode
stats remain readable while the diff action collapses to its icon.
test plan
vp test run apps/web/src/components/chat/MessagesTimeline.test.tsx apps/web/src/components/chat/ChangedFilesTree.test.tsx(23 passed)vp run --filter @t3tools/web typecheckvp lint apps/web/src/components/chat/ChangedFilesTree.tsx apps/web/src/components/chat/ChangedFilesTree.test.tsxvp fmt --check apps/web/src/components/chat/ChangedFilesTree.tsx apps/web/src/components/chat/ChangedFilesTree.test.tsxvp run --filter @t3tools/web buildvp test run apps/web/src(2194 passed; pre-existing/unrelatedruntimeAbi.test.tscollection failure onghostty-vt.wasm?inline)request provenance
Note
Low Risk
UI-only Tailwind layout tweak in the chat changed-files header, with no auth, data, or behavioral logic changes.
Overview
Prevents the changed-files header from overlapping when the chat pane is narrow by tightening flex constraints and switching helper-label visibility to a container query.
ChangedFilesCardis now an@container/changed-files. The file-count summary and action controls stayshrink-0, while only the optional “Show/Hide files” and “Open diff” labels truncate or hide below@[24rem]. Regression coverage asserts the new flex and container-query classes.Reviewed by Cursor Bugbot for commit 8723858. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix
ChangedFilesCardheader overlap using container queriesReplaces
sm:viewport breakpoints with@[24rem]/changed-filescontainer queries in theChangedFilesCardheader so secondary text and the 'Open diff' label appear based on the card's own width rather than the viewport. Also addsoverflow-hiddento the header button,shrink-0to the primary label and actions container, andmin-w-0 flex-1 truncateto the secondary label to prevent overlap in tight layouts.Macroscope summarized 8723858.