diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 9774488c4b..e63f121f14 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -72,7 +72,7 @@ return array( 'rsrc/css/application/differential/revision-list.css' => 'f3c47d33', 'rsrc/css/application/differential/table-of-contents.css' => 'ae4b7a55', 'rsrc/css/application/diffusion/diffusion-icons.css' => 'a6a1e2ba', - 'rsrc/css/application/diffusion/diffusion-readme.css' => '297373eb', + 'rsrc/css/application/diffusion/diffusion-readme.css' => '18bd3910', 'rsrc/css/application/diffusion/diffusion-source.css' => '750add59', 'rsrc/css/application/feed/feed.css' => 'ecd4ec57', 'rsrc/css/application/files/global-drag-and-drop.css' => '5c1b47c2', @@ -579,7 +579,7 @@ return array( 'differential-revision-list-css' => 'f3c47d33', 'differential-table-of-contents-css' => 'ae4b7a55', 'diffusion-icons-css' => 'a6a1e2ba', - 'diffusion-readme-css' => '297373eb', + 'diffusion-readme-css' => '18bd3910', 'diffusion-source-css' => '750add59', 'diviner-shared-css' => '896f1d43', 'font-fontawesome' => 'e838e088', diff --git a/src/applications/diffusion/view/DiffusionReadmeView.php b/src/applications/diffusion/view/DiffusionReadmeView.php index 16924ddd98..b475fa88ac 100644 --- a/src/applications/diffusion/view/DiffusionReadmeView.php +++ b/src/applications/diffusion/view/DiffusionReadmeView.php @@ -73,18 +73,6 @@ final class DiffusionReadmeView extends DiffusionView { ->getOutput($markup_object, $markup_field); $engine = $markup_object->newMarkupEngine($markup_field); - $toc = PhutilRemarkupHeaderBlockRule::renderTableOfContents($engine); - if ($toc) { - $toc = phutil_tag_div( - 'phabricator-remarkup-toc', - array( - phutil_tag_div( - 'phabricator-remarkup-toc-header', - pht('Table of Contents')), - $toc, - )); - $content = array($toc, $content); - } $readme_content = $content; $class = null; @@ -106,15 +94,13 @@ final class DiffusionReadmeView extends DiffusionView { } $readme_content = phutil_tag_div($class, $readme_content); - $header = id(new PHUIHeaderView()) - ->setHeader($readme_name); - $document = id(new PHUIDocumentViewPro()) ->setFluid(true) ->appendChild($readme_content); return id(new PHUIObjectBoxView()) - ->setHeader($header) + ->setHeaderText($readme_name) + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) ->appendChild($document) ->addClass('diffusion-readme-view'); } diff --git a/webroot/rsrc/css/application/diffusion/diffusion-readme.css b/webroot/rsrc/css/application/diffusion/diffusion-readme.css index bb661bb2c8..b8e20af5cb 100644 --- a/webroot/rsrc/css/application/diffusion/diffusion-readme.css +++ b/webroot/rsrc/css/application/diffusion/diffusion-readme.css @@ -11,4 +11,9 @@ .diffusion-readme-view .phui-document-container { border: none; + padding: 24px 32px; +} + +.diffusion-readme-view .phabricator-remarkup-toc { + display: none; }