1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00

clean up tablet view, group tiles.

This commit is contained in:
Chad Little 2014-05-25 16:30:32 -07:00
parent ff9057fd82
commit 74e42d7cce
4 changed files with 7 additions and 22 deletions

View file

@ -114,25 +114,6 @@ abstract class PhabricatorHomeController extends PhabricatorController {
$tiles[] = $tile; $tiles[] = $tile;
} }
if ($is_small_tiles) {
while (count($tiles) % 3) {
$tiles[] = id(new PhabricatorApplicationLaunchView());
}
$label = id(new PHUIListItemView())
->setType(PHUIListItemView::TYPE_LABEL)
->setName($groups[$group]);
if ($is_hide) {
$label_id = celerity_generate_unique_node_id();
$attrs = array();
$label->setStyle('display: none;');
$label->setID($label_id);
$tile_ids[] = $label_id;
}
$nav->addMenuItem($label);
}
$group_id = celerity_generate_unique_node_id(); $group_id = celerity_generate_unique_node_id();
$tile_ids[] = $group_id; $tile_ids[] = $group_id;
$nav->addCustomBlock( $nav->addCustomBlock(

View file

@ -9,6 +9,7 @@ final class PhabricatorHomeQuickCreateController
$items = $this->getCurrentApplication()->loadAllQuickCreateItems($viewer); $items = $this->getCurrentApplication()->loadAllQuickCreateItems($viewer);
$list = id(new PHUIObjectItemListView()) $list = id(new PHUIObjectItemListView())
->setCards(true)
->setUser($viewer); ->setUser($viewer);
foreach ($items as $item) { foreach ($items as $item) {

View file

@ -23,7 +23,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
$content = array(); $content = array();
$icon = null; $icon = null;
$create_button = null;
if ($application) { if ($application) {
$content[] = phutil_tag( $content[] = phutil_tag(
'span', 'span',
@ -127,7 +126,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
$classes = array(); $classes = array();
$classes[] = 'phabricator-application-launch-container'; $classes[] = 'phabricator-application-launch-container';
$classes[] = 'application-tile-full';
$app_button = phutil_tag( $app_button = phutil_tag(
$application ? 'a' : 'div', $application ? 'a' : 'div',
@ -140,6 +138,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
$content, $content,
)); ));
return array($app_button, $create_button); return $app_button;
} }
} }

View file

@ -44,6 +44,11 @@
display: block; display: block;
} }
.device-desktop .phabricator-side-menu-home .phabricator-nav-content,
.device-tablet .phabricator-side-menu-home .phabricator-nav-content {
margin-left: 205px;
}
.phabricator-nav-local { .phabricator-nav-local {
width: 205px; width: 205px;
position: absolute; position: absolute;