Page MenuHomePhabricator

To improve wrapping behavior of rendered README files, don't use "PHUIDocumentView" in Diffusion
ClosedPublic

Authored by epriestley on May 21 2019, 1:35 PM.
Tags
None
Referenced Files
F19090559: D20536.id48967.diff
Dec 3 2025, 12:11 PM
F19073253: D20536.id48967.diff
Dec 1 2025, 1:30 AM
F18923136: D20536.id48967.diff
Nov 9 2025, 4:18 PM
F18803627: D20536.id48976.diff
Oct 18 2025, 2:07 AM
F18766607: D20536.id.diff
Oct 7 2025, 5:33 PM
F18759192: D20536.diff
Oct 6 2025, 2:21 AM
F18752525: D20536.id.diff
Oct 4 2025, 3:34 PM
F18673570: D20536.diff
Sep 25 2025, 11:11 AM
Subscribers
None

Details

Summary

See PHI1268. We currently do some weird width handling when rendering Diffusion readmes in a document directory view.

I think this came from D12330, which used PHUIDocumentViewPro to change the font, but we later reverted the font and were left with the DocumentView. Other changes after that modified DocumentView to have fixed-width behavior, but it doesn't make much sense here since the content panel is clearly rendered full-width.

Today, the DocumentView is a more structural element with methods like setCurtain(). Just get rid of it to simplify things, at least as a first step.

Test Plan

Before:

Screen Shot 2019-05-21 at 6.25.59 AM.png (890×1 px, 194 KB)

After:

Screen Shot 2019-05-21 at 6.30.04 AM.png (777×2 px, 239 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable