Page MenuHomePhabricator

Long lines overflow in Diffusion browser
Closed, ResolvedPublic

Description

Possibly related to T11236?

Reproduction steps:

  • Make a commit with some arbitrarily-long (>225 characters or so) line of text without spaces.
  • Browse that file in Diffusion at /diffusion/REPO/browse/BRANCH/MYFILE.TXT

Expected result:

  • Long line wraps at some reasonable width

Observed result:

  • Long line does not wrap and the side column is hidden underneath the Diffusion source table:

pasted_file (428×1 px, 42 KB)

Our version information:

  • rP23c54262caf84abdad82974212170ff24d138f4d
  • rARC9503b941cc02be637d967bb50cfb25f852e071e4
  • rPHU10963f771f118baa338aacd3172aaede695cde62

Version information on Phacility test instance:

  • phabricator 23c54262caf84abdad82974212170ff24d138f4d (Sun, Jan 22) (branched from ddf82a815b9a07e901870c2f4d5b7582af7b4d82 on origin)
  • arcanist 9503b941cc02be637d967bb50cfb25f852e071e4 (Fri, Jan 6) (branched from ade25facfdf22aed1c1e20fed3e58e60c0be3c2b on origin)
  • phutil 10963f771f118baa338aacd3172aaede695cde62 (Fri, Jan 13) (branched from 9d85dfab0f532d50c2343719e92d574a4827341b on origin)

Revisions and Commits

Restricted Differential Revision

Event Timeline

In Paste (and I think Differential), we scroll lines instead of trying to wrap them:

Screen Shot 2017-01-27 at 7.51.30 AM.png (255×1 px, 40 KB)

In theory, it might be nice to unify the Diffusion file view code and the paste file view code. However, the Diffusion stuff at least is pretty complex/specialized so I'm not sure this is desirable in practice.

A sufficient near-term fix is probably sticking overflow-x: auto; into CSS somewhere.

(I think this only impacts Diffusion, not Differential.)

sorry that our DEEP NEURAL NETWORK TECHNOLOGY can not yet READ MINDS

I'm just going to rename Differential everywhere.

sorry that our DEEP NEURAL NETWORK TECHNOLOGY can not yet READ MINDS

https://archive.google.com/mentalplex/

epriestley edited projects, added Diffusion (v3); removed Diffusion.

I can't reproduce this, is there a specific browser/OS I should test? Also, feel free to upload a test file to rGITTEST

word-break: break-all; seems to be working fine.

pasted_file (1×2 px, 388 KB)

I see, it must be a text file.

chad added a revision: Restricted Differential Revision.Feb 2 2017, 10:09 PM
chad closed this task as Resolved by committing Restricted Diffusion Commit.Feb 2 2017, 10:11 PM
chad added a commit: Restricted Diffusion Commit.