Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13964249
D20536.id48976.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.id48976.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 16 2024, 7:58 PM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716134
Default Alt Text
D20536.id48976.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