1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 19:22:42 +01:00

Make App Pinning use Stackable list

Summary: This makes setStackble play well in ObjectBox, also tweaks dragging in a stackable box (pinning)

Test Plan: Drag in App Settings, Drag in Maniphest, Workboards

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9413
This commit is contained in:
Chad Little 2014-06-07 11:28:37 -07:00
parent dd796a44b6
commit b1362e4e46
3 changed files with 38 additions and 8 deletions

View file

@ -7,7 +7,7 @@
return array( return array(
'names' => 'names' =>
array( array(
'core.pkg.css' => 'd9c53a92', 'core.pkg.css' => '73e14ee6',
'core.pkg.js' => '9c9c8442', 'core.pkg.js' => '9c9c8442',
'darkconsole.pkg.js' => 'ca8671ce', 'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => '4a93db37', 'differential.pkg.css' => '4a93db37',
@ -135,7 +135,7 @@ return array(
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
'rsrc/css/phui/phui-list.css' => '43ed2d93', 'rsrc/css/phui/phui-list.css' => '43ed2d93',
'rsrc/css/phui/phui-object-box.css' => 'ce92d8ec', 'rsrc/css/phui/phui-object-box.css' => 'ce92d8ec',
'rsrc/css/phui/phui-object-item-list-view.css' => '5dfa7e4f', 'rsrc/css/phui/phui-object-item-list-view.css' => '31d6da4e',
'rsrc/css/phui/phui-pinboard-view.css' => '874c22f9', 'rsrc/css/phui/phui-pinboard-view.css' => '874c22f9',
'rsrc/css/phui/phui-property-list-view.css' => '2f7199e8', 'rsrc/css/phui/phui-property-list-view.css' => '2f7199e8',
'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b', 'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b',
@ -762,7 +762,7 @@ return array(
'phui-info-panel-css' => '27ea50a1', 'phui-info-panel-css' => '27ea50a1',
'phui-list-view-css' => '43ed2d93', 'phui-list-view-css' => '43ed2d93',
'phui-object-box-css' => 'ce92d8ec', 'phui-object-box-css' => 'ce92d8ec',
'phui-object-item-list-view-css' => '5dfa7e4f', 'phui-object-item-list-view-css' => '31d6da4e',
'phui-pinboard-view-css' => '874c22f9', 'phui-pinboard-view-css' => '874c22f9',
'phui-property-list-view-css' => '2f7199e8', 'phui-property-list-view-css' => '2f7199e8',
'phui-remarkup-preview-css' => '19ad512b', 'phui-remarkup-preview-css' => '19ad512b',

View file

@ -127,7 +127,7 @@ final class PhabricatorSettingsPanelHomePreferences
$list = id(new PHUIObjectItemListView()) $list = id(new PHUIObjectItemListView())
->setUser($user) ->setUser($user)
->setID($list_id) ->setID($list_id)
->setFlush(true); ->setStackable(true);
Javelin::initBehavior( Javelin::initBehavior(
'reorder-applications', 'reorder-applications',

View file

@ -145,7 +145,7 @@
} }
.phui-object-item-actions .phui-list-item-href:hover { .phui-object-item-actions .phui-list-item-href:hover {
background: #e9e9f9; background: {$hoverblue};
} }
.phui-object-item-actions .phui-list-item-icon { .phui-object-item-actions .phui-list-item-icon {
@ -195,9 +195,26 @@
.device-desktop .phui-object-list-stackable .device-desktop .phui-object-list-stackable
.phui-object-item:hover { .phui-object-item:hover {
background: #e9ecf5; background: {$hoverblue};
} }
.phui-object-box .phui-object-list-stackable {
padding: 0;
}
.phui-object-box .phui-object-list-stackable .phui-object-item {
border: none;
}
.phui-object-box .phui-object-list-stackable .phui-object-item-frame {
border-right: none;
}
.phui-object-box .phui-object-list-stackable:last-child .phui-object-item-frame {
border-bottom: none;
}
/* - Subhead ------------------------------------------------------------------- /* - Subhead -------------------------------------------------------------------
Descriptive Text or Links under the main header, before attributes. Descriptive Text or Links under the main header, before attributes.
@ -556,13 +573,26 @@
border-radius: 3px; border-radius: 3px;
} }
.phui-object-list-stackable .drag-ghost {
background: {$hoverblue};
margin: 0;
border-radius: none;
border: none;
border-top: 1px solid {$lightgreyborder}
}
.drag-dragging { .drag-dragging {
position: relative; position: relative;
opacity: 0.9; opacity: 0.85;
}
.phui-object-box .phui-object-list-stackable .drag-dragging
.phui-object-item-frame {
border-bottom: 1px solid {$lightgreyborder};
} }
.drag-sending { .drag-sending {
opacity: 0.75; opacity: 0.5;
} }
/* - Plain --------------------------------------------------------------------- /* - Plain ---------------------------------------------------------------------