mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Add standard spacing around viewing panels
Summary: Just wraps them in some boxes in edit and standalone mode. Test Plan: Tested 3 panels in edit and standalone mode. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9232
This commit is contained in:
parent
49c15a6d95
commit
53940e272f
2 changed files with 11 additions and 2 deletions
|
@ -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()),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue