mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Correct logic in PHUIActionPanelView
Summary: We should only be adding space then a status is set, not a state. Test Plan: Test on UIExamples, still renders as expected. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11844
This commit is contained in:
parent
7c9e73b31d
commit
1d5825c695
3 changed files with 11 additions and 6 deletions
|
@ -122,7 +122,7 @@ return array(
|
|||
'rsrc/css/phui/calendar/phui-calendar.css' => '8675968e',
|
||||
'rsrc/css/phui/phui-action-header-view.css' => '89c497e7',
|
||||
'rsrc/css/phui/phui-action-list.css' => '9ee9910a',
|
||||
'rsrc/css/phui/phui-action-panel.css' => 'd2e088bd',
|
||||
'rsrc/css/phui/phui-action-panel.css' => '3ee9afd5',
|
||||
'rsrc/css/phui/phui-box.css' => '7b3a2eed',
|
||||
'rsrc/css/phui/phui-button.css' => 'ffe12633',
|
||||
'rsrc/css/phui/phui-crumbs-view.css' => '594d719e',
|
||||
|
@ -771,7 +771,7 @@ return array(
|
|||
'phrequent-css' => 'ffc185ad',
|
||||
'phriction-document-css' => '7d7f0071',
|
||||
'phui-action-header-view-css' => '89c497e7',
|
||||
'phui-action-panel-css' => 'd2e088bd',
|
||||
'phui-action-panel-css' => '3ee9afd5',
|
||||
'phui-box-css' => '7b3a2eed',
|
||||
'phui-button-css' => 'ffe12633',
|
||||
'phui-calendar-css' => '8675968e',
|
||||
|
|
|
@ -82,8 +82,8 @@ final class PHUIActionPanelView extends AphrontTagView {
|
|||
|
||||
$classes = array();
|
||||
$classes[] = 'phui-action-panel';
|
||||
if ($this->state) {
|
||||
$classes[] = 'phui-action-panel-has-state';
|
||||
if ($this->status) {
|
||||
$classes[] = 'phui-action-panel-has-status';
|
||||
$classes[] = $this->state;
|
||||
|
||||
}
|
||||
|
@ -158,9 +158,10 @@ final class PHUIActionPanelView extends AphrontTagView {
|
|||
if ($this->status && $this->state) {
|
||||
$state_icon = $this->getStateIcon();
|
||||
$status = phutil_tag(
|
||||
'div',
|
||||
($this->href) ? 'a' : 'div',
|
||||
array(
|
||||
'class' => 'phui-action-panel-status',
|
||||
'href' => ($this->href) ? $this->href : null,
|
||||
),
|
||||
array($state_icon, $this->status));
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
position: relative;
|
||||
}
|
||||
|
||||
.phui-action-panel-has-state.phui-action-panel {
|
||||
.phui-action-panel-has-status.phui-action-panel {
|
||||
padding-bottom: 44px;
|
||||
}
|
||||
|
||||
|
@ -66,6 +66,10 @@
|
|||
right: 0;
|
||||
}
|
||||
|
||||
.phui-action-panel-status:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.phui-action-panel-none .phui-action-panel-status {
|
||||
background-color: {$lightgreybackground};
|
||||
border-left: 4px solid {$greyborder};
|
||||
|
|
Loading…
Reference in a new issue