Skip to content

no-unnecessary-split-diff-view is broken #10411

In progress

Description

@its-miroma

Description

The feature appears to be broken, please see screenshots.

  1. Split views with differences on both sides aren't split in the middle (fuchsia border mine):

Split views with differences on both sides aren't split in the middle

  1. Text doesn't wrap correctly on tighter view widths, and there's no scrollbar either:

Text doesn't wrap correctly on tighter view widths

  1. Sides with no changes are not hidden as expected:

Sides with no changes are not hidden as expected

Notes:

  • Binary search indicated that this is the feature responsible.
  • There is one pull-request-hotkeys error in the console, but it appears to be unrelated.
  • I have some custom CSS, but I can reproduce the issue even without it. I don't know whether the binary search also includes disabling custom CSS.
  • Enabled GitHub feature previews:
    • New Pull Requests Overview
    • New Files Changed Experience
    • New Files Changed Perf Experiment
    • New Repository Pull Requests Dashboard

How to replicate the issue + URL

https://github.com/FabricMC/fabric-docs/pull/802/files?diff=split

Extension version

26.11.6

Browser(s) used

Ungoogled Chromium

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. t-ukisu commented on Nov 28, 2026

    @t-ukisu

    I looked into this and have a candidate fix in #10416 (currently closed by the automation until a human reopens it).

    Cause: GitHub's new diff view no longer uses .deletion/.addition (it now uses data-diff-type), nor .diff-line-row/.diff-line-number (now hashed CSS-module classes). So every split table is detected as "only additions", gets table-layout: auto (center border moves per file), the empty side isn't hidden, and one-sided tables can overflow on long unbreakable strings.

    I checked the fix on https://github.com/FabricMC/fabric-docs/pull/802/files?diff=split: all 3 symptoms are gone at 1280px and 900px wide. Details and before/after screenshots are in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions