Page MenuHomePhabricator

Truncate package names in diff table of contents views
ClosedPublic

Authored by epriestley on Jun 7 2018, 7:00 PM.
Tags
None
Referenced Files
F15476655: D19478.diff
Mon, Apr 7, 8:20 AM
F15442754: D19478.diff
Thu, Mar 27, 12:17 AM
F15426839: D19478.id.diff
Sun, Mar 23, 11:03 AM
F15425954: D19478.id46589.diff
Sun, Mar 23, 6:44 AM
F15423208: D19478.diff
Sat, Mar 22, 1:56 PM
F15400640: D19478.diff
Mon, Mar 17, 1:06 PM
F15382964: D19478.id46589.diff
Fri, Mar 14, 3:03 PM
F15298375: D19478.diff
Mar 5 2025, 1:18 PM
Subscribers
None

Details

Summary

Ref T13151. See PHI654. Depends on D19477. If you have long package names, the table of contents (e.g., in Differential) can end up expanding to be gigantic.

Getting tables to behave nicely is hard (or, at least, I can't figure it out after spending a decent amount of time on it; see also AphrontTableView::renderSingleDisplayLine()). I tried a bunch of things and Googled for a bit but didn't make any progress on finding a CSS solution. Just truncate the package names to get reasonable behavior without falling down any kind of CSS rabbit hole.

Test Plan
  • Created a package named "Very long package name...".
  • Created a package named "MMMMMMMMMMMMMMMMMMMMMM...".
  • Had them own a file in a Differential revision, viewed that revision.
  • Before: table is pushed out to several times the browser window width and everything is kind of a mess.
  • After: package names get truncated to something reasonable.

Screen Shot 2018-06-07 at 11.55.47 AM.png (620×1 px, 128 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable