[Redesign] PHUIHeaderView goes to table layout
Summary: Ref T8099. This changes makes flexible layouts easier, and aligns icons, buttons better vertically. Test Plan: Test various header locations, Phriction, Conpherence, Dashboards, Workboards etc. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8099 Differential Revision: https://secure.phabricator.com/D12961
This commit is contained in:
@@ -48,6 +48,10 @@ abstract class DiffusionBrowseController extends DiffusionController {
|
||||
'#');
|
||||
}
|
||||
|
||||
$filter = id(new PHUIBoxView())
|
||||
->addClass('mlt mlb')
|
||||
->appendChild($filter);
|
||||
|
||||
return $filter;
|
||||
}
|
||||
|
||||
|
||||
@@ -470,7 +470,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$header->addActionLink($button);
|
||||
|
||||
$panel->setHeader($header);
|
||||
$panel->appendChild($view);
|
||||
$panel->setTable($view);
|
||||
|
||||
return $panel;
|
||||
}
|
||||
@@ -653,14 +653,15 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
->setID('locate-input')
|
||||
->setLabel(pht('Locate File')));
|
||||
$form_box = id(new PHUIBoxView())
|
||||
->addClass('diffusion-locate-file-view')
|
||||
->appendChild($form->buildLayoutView());
|
||||
$browse_panel->appendChild($form_box);
|
||||
$locate_panel = id(new PHUIObjectBoxView())
|
||||
->setHeaderText('Locate File')
|
||||
->appendChild($form_box);
|
||||
}
|
||||
|
||||
$browse_panel->setTable($browse_table);
|
||||
|
||||
return $browse_panel;
|
||||
return array($locate_panel, $browse_panel);
|
||||
}
|
||||
|
||||
private function renderCloneCommand(
|
||||
|
||||
Reference in New Issue
Block a user