1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-27 15:08:20 +01:00

Clean up feedback from D11340

Summary: Ref D11340, I missed the comments being to excited to land.

Test Plan: Shrink window to mobile view, click on action menu.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11347
This commit is contained in:
Chad Little 2015-01-12 08:21:17 -08:00
parent 0d070c91dc
commit 9f4a3226ea
4 changed files with 6 additions and 31 deletions

View file

@ -7,7 +7,7 @@
*/ */
return array( return array(
'names' => array( 'names' => array(
'core.pkg.css' => '2b129813', 'core.pkg.css' => 'b99369cc',
'core.pkg.js' => '61af8961', 'core.pkg.js' => '61af8961',
'darkconsole.pkg.js' => '8ab24e01', 'darkconsole.pkg.js' => '8ab24e01',
'differential.pkg.css' => '8af45893', 'differential.pkg.css' => '8af45893',
@ -130,7 +130,7 @@ return array(
'rsrc/css/phui/phui-fontkit.css' => '9c3d2dce', 'rsrc/css/phui/phui-fontkit.css' => '9c3d2dce',
'rsrc/css/phui/phui-form-view.css' => 'aad06f2a', 'rsrc/css/phui/phui-form-view.css' => 'aad06f2a',
'rsrc/css/phui/phui-form.css' => '9aecbda1', 'rsrc/css/phui/phui-form.css' => '9aecbda1',
'rsrc/css/phui/phui-header-view.css' => '0873d56f', 'rsrc/css/phui/phui-header-view.css' => 'c936b5b9',
'rsrc/css/phui/phui-icon.css' => 'a013a63d', 'rsrc/css/phui/phui-icon.css' => 'a013a63d',
'rsrc/css/phui/phui-image-mask.css' => '5a8b09c8', 'rsrc/css/phui/phui-image-mask.css' => '5a8b09c8',
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
@ -774,7 +774,7 @@ return array(
'phui-fontkit-css' => '9c3d2dce', 'phui-fontkit-css' => '9c3d2dce',
'phui-form-css' => '9aecbda1', 'phui-form-css' => '9aecbda1',
'phui-form-view-css' => 'aad06f2a', 'phui-form-view-css' => 'aad06f2a',
'phui-header-view-css' => '0873d56f', 'phui-header-view-css' => 'c936b5b9',
'phui-icon-view-css' => 'a013a63d', 'phui-icon-view-css' => 'a013a63d',
'phui-image-mask-css' => '5a8b09c8', 'phui-image-mask-css' => '5a8b09c8',
'phui-info-panel-css' => '27ea50a1', 'phui-info-panel-css' => '27ea50a1',

View file

@ -22,9 +22,6 @@ final class PHUIButtonView extends AphrontTagView {
private $title = null; private $title = null;
private $disabled; private $disabled;
private $name; private $name;
private $id;
private $sigil;
private $meta;
public function setName($name) { public function setName($name) {
$this->name = $name; $this->name = $name;
@ -85,21 +82,6 @@ final class PHUIButtonView extends AphrontTagView {
return $this; return $this;
} }
public function setID($id) {
$this->id = $id;
return $this;
}
public function setSigil($sigil) {
$this->sigil = $sigil;
return $this;
}
public function setMeta($meta) {
$this->meta = $meta;
return $this;
}
public function getTagName() { public function getTagName() {
return $this->tag; return $this->tag;
} }
@ -136,9 +118,6 @@ final class PHUIButtonView extends AphrontTagView {
'href' => $this->href, 'href' => $this->href,
'name' => $this->name, 'name' => $this->name,
'title' => $this->title, 'title' => $this->title,
'id' => $this->id,
'sigil' => $this->sigil,
'meta' => $this->meta,
); );
} }

View file

@ -170,7 +170,7 @@ final class PHUIObjectBoxView extends AphrontView {
$meta = array( $meta = array(
'map' => array( 'map' => array(
$this->actionListID => 'phabricator-action-list-toggle', $this->actionListID => 'phabricator-action-list-toggle',
$icon_id => 'phui-mobile-action-menu-open', $icon_id => 'phuix-dropdown-open',
),); ),);
$mobile_menu = id(new PHUIButtonView()) $mobile_menu = id(new PHUIButtonView())
->setTag('a') ->setTag('a')
@ -179,8 +179,8 @@ final class PHUIObjectBoxView extends AphrontView {
->setIcon($icon) ->setIcon($icon)
->addClass('phui-mobile-menu') ->addClass('phui-mobile-menu')
->setID($icon_id) ->setID($icon_id)
->setSigil('jx-toggle-class') ->addSigil('jx-toggle-class')
->setMeta($meta); ->setMetadata($meta);
$header->addActionLink($mobile_menu); $header->addActionLink($mobile_menu);
} }

View file

@ -146,7 +146,3 @@ body.device-phone .phui-header-view {
.device .phui-header-action-links .phui-mobile-menu { .device .phui-header-action-links .phui-mobile-menu {
display: inline-block; display: inline-block;
} }
.phui-mobile-action-menu-open {
background: white !important;
}