mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
clean up tablet view, group tiles.
This commit is contained in:
parent
ff9057fd82
commit
74e42d7cce
4 changed files with 7 additions and 22 deletions
|
@ -114,25 +114,6 @@ abstract class PhabricatorHomeController extends PhabricatorController {
|
|||
$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();
|
||||
$tile_ids[] = $group_id;
|
||||
$nav->addCustomBlock(
|
||||
|
|
|
@ -9,6 +9,7 @@ final class PhabricatorHomeQuickCreateController
|
|||
$items = $this->getCurrentApplication()->loadAllQuickCreateItems($viewer);
|
||||
|
||||
$list = id(new PHUIObjectItemListView())
|
||||
->setCards(true)
|
||||
->setUser($viewer);
|
||||
|
||||
foreach ($items as $item) {
|
||||
|
|
|
@ -23,7 +23,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
|
|||
|
||||
$content = array();
|
||||
$icon = null;
|
||||
$create_button = null;
|
||||
if ($application) {
|
||||
$content[] = phutil_tag(
|
||||
'span',
|
||||
|
@ -127,7 +126,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
|
|||
|
||||
$classes = array();
|
||||
$classes[] = 'phabricator-application-launch-container';
|
||||
$classes[] = 'application-tile-full';
|
||||
|
||||
$app_button = phutil_tag(
|
||||
$application ? 'a' : 'div',
|
||||
|
@ -140,6 +138,6 @@ final class PhabricatorApplicationLaunchView extends AphrontView {
|
|||
$content,
|
||||
));
|
||||
|
||||
return array($app_button, $create_button);
|
||||
return $app_button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
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 {
|
||||
width: 205px;
|
||||
position: absolute;
|
||||
|
|
Loading…
Reference in a new issue