Page MenuHomePhabricator

Never render "Show More Context" inside an inline comment suggestion diff
ClosedPublic

Authored by epriestley on Oct 2 2020, 4:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 26, 11:33 PM
Unknown Object (File)
Feb 24 2024, 4:36 PM
Unknown Object (File)
Jan 7 2024, 11:29 PM
Unknown Object (File)
Dec 27 2023, 1:39 PM
Unknown Object (File)
Dec 22 2023, 3:26 AM
Unknown Object (File)
Nov 30 2023, 5:12 AM
Unknown Object (File)
Nov 18 2023, 9:28 AM
Unknown Object (File)
Nov 13 2023, 3:03 PM
Subscribers
None

Details

Summary

See PHI1896. If you do this:

  • Create an inline comment over a wide range of lines.
  • Suggest an edit.
  • Make a change near the beginning of the block.
  • Make a change near the end of the block.
  • Save the inline.

...you get a rendering which includes a "Show More Context" fold in the middle.

Currently, this element renders in a visually broken way and consumes too many columns.

However, this element isn't ever desirable inside inline comment suggestions. Stop it from rendering entirely.

Test Plan
  • Made an inline comment suggestion across lines 1-50 with edits at the beginning and end, saw a contiguous diff.
  • Made smaller inline comment suggestions (one line, a few lines).

Diff Detail

Repository
rP Phabricator
Branch
inline1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24933
Build 34399: Run Core Tests
Build 34398: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Oct 2 2020, 4:46 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.