Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
All PRs must include screenshots showing the changes or fixes. This looks like an AI-generated PR, "tests pass" is not an excuse. Next steps:
Tips:
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 task done
Member
|
The screenshots don't show the feature working |
Author
|
Thanks, I replaced the screenshots: the first pair now shows a one-sided file ( |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
t-ukisu
force-pushed
the
fix-no-unnecessary-split-diff-view
branch
from
November 28, 2026 13:23
12eb64d to
37f8382
Compare
|
Please don't force-push to this PR, it makes it harder to see what changed since the last review. We merge commits rather than squash, so we care more about reviewability than a clean history. Feel free to push dirty commits. |
This branch has not been deployed
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.
Fixes #10411
GitHub's new diff view no longer uses the
.deletion/.additionclasses (it now usesdata-diff-type) or.diff-line-row/.diff-line-number(hashed CSS-module classes). As a result:table-layout: auto, so the center border moved per fileThe single commit page still uses the previous DOM (
.deletion/.addition,.diff-line-row), so the detection and the CSS now support both.Before / after: a file with changes only on one side
advancements.mdhas only additions. Before, the table was 2124px wide in an 867px container, so the added lines were pushed out of view (blank green area). After, the empty left side is hidden and the added lines use the full width and wrap.Before
After
Before / after: files with changes on both sides
The center border differed per file and the right side was clipped. After, it's the same in every file.
Before
After
Verified
no-unnecessary-split-diff-viewis broken #10411)table-layoutisfixed, there is norgh-no-split-diffclass and the center border is at the same x position in every file; no table is wider than its container.autowithrgh-only-additions, tables 947px and 910px wide in an 867px container. The one-sided file was 2124px wide.fixedwith the border at the same x (433px at 1280px wide, 425px at 900px wide); the one-sided file is collapsed and fits its container (865px, no overflow) at both widths.?diff=unifiedis not touched.data-diff-type; fixed in 37f8382):main.mainit was detected as addition-only).-/+lines). The 3 files are still detected correctly (both sides / deletion-only / addition-only), the suggestions are not counted as changes and are not hidden..js-diff-tableDOM, checked on 37f8382): on the PR above, the one-sided tables areautoand the two-sided one isfixed, as designed; on the commit page the 3 tables are detected as onmain.overflow-wrapselector and add support for the previous DOM, and I re-ran the fabric-docs#802 check on 37f8382: two-sided tablesfixed, border at the same x)tsc --noEmitand vitest pass🤖 Generated with Claude Code