Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13972175
D20536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20536.diff
View Options
diff --git a/src/applications/diffusion/view/DiffusionReadmeView.php b/src/applications/diffusion/view/DiffusionReadmeView.php
--- a/src/applications/diffusion/view/DiffusionReadmeView.php
+++ b/src/applications/diffusion/view/DiffusionReadmeView.php
@@ -75,7 +75,7 @@
$engine = $markup_object->newMarkupEngine($markup_field);
$readme_content = $content;
- $class = null;
+ $class = 'ml';
break;
case 'rainbow':
$content = id(new PhutilRainbowSyntaxHighlighter())
@@ -93,10 +93,12 @@
break;
}
- $readme_content = phutil_tag_div($class, $readme_content);
- $document = id(new PHUIDocumentView())
- ->setFluid(true)
- ->appendChild($readme_content);
+ $readme_content = phutil_tag(
+ 'div',
+ array(
+ 'class' => $class,
+ ),
+ $readme_content);
$header = id(new PHUIHeaderView())
->setHeader($readme_name)
@@ -106,7 +108,7 @@
->setHeader($header)
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->addClass('diffusion-mobile-view')
- ->appendChild($document)
+ ->appendChild($readme_content)
->addClass('diffusion-readme-view');
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 18 2024, 5:31 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716134
Default Alt Text
D20536.diff (1 KB)
Attached To
Mode
D20536: To improve wrapping behavior of rendered README files, don't use "PHUIDocumentView" in Diffusion
Attached
Detach File
Event Timeline
Log In to Comment