Page MenuHomePhabricator

D20536.id48976.diff
No OneTemporary

D20536.id48976.diff

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

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)

Event Timeline