diff --git a/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php b/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php index 0fb2bc2474..565371a4bd 100644 --- a/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php +++ b/src/applications/dashboard/controller/PhabricatorDashboardPanelRenderController.php @@ -54,10 +54,14 @@ final class PhabricatorDashboardPanelRenderController ->addTextCrumb($panel->getMonogram(), '/'.$panel->getMonogram()) ->addTextCrumb(pht('Standalone View')); + $view = id(new PHUIBoxView()) + ->addMargin(PHUI::MARGIN_LARGE) + ->appendChild($rendered_panel); + return $this->buildApplicationPage( array( $crumbs, - $rendered_panel, + $view, ), array( 'title' => array(pht('Panel'), $panel->getName()), diff --git a/src/applications/dashboard/controller/PhabricatorDashboardPanelViewController.php b/src/applications/dashboard/controller/PhabricatorDashboardPanelViewController.php index e51ca5b758..ba8e256dd1 100644 --- a/src/applications/dashboard/controller/PhabricatorDashboardPanelViewController.php +++ b/src/applications/dashboard/controller/PhabricatorDashboardPanelViewController.php @@ -44,12 +44,17 @@ final class PhabricatorDashboardPanelViewController ->setParentPanelPHIDs(array()) ->renderPanel(); + $view = id(new PHUIBoxView()) + ->addMargin(PHUI::MARGIN_LARGE_LEFT) + ->addMargin(PHUI::MARGIN_LARGE_RIGHT) + ->appendChild($rendered_panel); + return $this->buildApplicationPage( array( $crumbs, $box, $timeline, - $rendered_panel, + $view, ), array( 'title' => $title,