Skip to content

Commit a599aed

Browse files
chadlittlechad
authored andcommitted
Clean up Project Members UI
Summary: - Better spacing for images - Remove border - White BG on Members page Test Plan: Review Projects / Project Home / Project Members Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15118
1 parent 49a44a0 commit a599aed

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

resources/celerity/map.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
return array(
99
'names' => array(
10-
'core.pkg.css' => 'ab6cb6b8',
10+
'core.pkg.css' => 'bb7485ba',
1111
'core.pkg.js' => '573e6664',
1212
'darkconsole.pkg.js' => 'e7393ebb',
1313
'differential.pkg.css' => '2de124c9',
@@ -141,7 +141,7 @@
141141
'rsrc/css/phui/phui-info-view.css' => '6d7c3509',
142142
'rsrc/css/phui/phui-list.css' => '9da2aa00',
143143
'rsrc/css/phui/phui-object-box.css' => '407eaf5a',
144-
'rsrc/css/phui/phui-object-item-list-view.css' => 'bbc929b3',
144+
'rsrc/css/phui/phui-object-item-list-view.css' => '0d484a97',
145145
'rsrc/css/phui/phui-pager.css' => 'bea33d23',
146146
'rsrc/css/phui/phui-pinboard-view.css' => '2495140e',
147147
'rsrc/css/phui/phui-profile-menu.css' => 'fa814ef9',
@@ -817,7 +817,7 @@
817817
'phui-inline-comment-view-css' => '0fdb3667',
818818
'phui-list-view-css' => '9da2aa00',
819819
'phui-object-box-css' => '407eaf5a',
820-
'phui-object-item-list-view-css' => 'bbc929b3',
820+
'phui-object-item-list-view-css' => '0d484a97',
821821
'phui-pager-css' => 'bea33d23',
822822
'phui-pinboard-view-css' => '2495140e',
823823
'phui-profile-menu-css' => 'fa814ef9',

src/applications/project/controller/PhabricatorProjectProfileController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ public function handleRequest(AphrontRequest $request) {
4949
->setUser($viewer)
5050
->setProject($project)
5151
->setLimit(5)
52+
->setBackground(PHUIBoxView::GREY)
5253
->setUserPHIDs($project->getMemberPHIDs());
5354

5455
$watcher_list = id(new PhabricatorProjectWatcherListView())
5556
->setUser($viewer)
5657
->setProject($project)
5758
->setLimit(5)
59+
->setBackground(PHUIBoxView::GREY)
5860
->setUserPHIDs($project->getWatcherPHIDs());
5961

6062
$nav = $this->getProfileMenu();

src/applications/project/view/PhabricatorProjectUserListView.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ abstract class PhabricatorProjectUserListView extends AphrontView {
55
private $project;
66
private $userPHIDs;
77
private $limit;
8+
private $background;
89

910
public function setProject(PhabricatorProject $project) {
1011
$this->project = $project;
@@ -33,6 +34,11 @@ public function getLimit() {
3334
return $this->limit;
3435
}
3536

37+
public function setBackground($color) {
38+
$this->background = $color;
39+
return $this;
40+
}
41+
3642
abstract protected function canEditList();
3743
abstract protected function getNoDataString();
3844
abstract protected function getRemoveURI($phid);
@@ -80,7 +86,7 @@ public function render() {
8086
->setImageURI($handle->getImageURI());
8187

8288
$icon = id(new PHUIIconView())
83-
->setIconFont($handle->getIcon().' grey');
89+
->setIconFont($handle->getIcon().' lightbluetext');
8490

8591
$subtitle = $handle->getSubtitle();
8692

@@ -125,10 +131,15 @@ public function render() {
125131
->setHref("/project/members/{$id}/"));
126132
}
127133

128-
return id(new PHUIObjectBoxView())
134+
$box = id(new PHUIObjectBoxView())
129135
->setHeader($header)
130-
->setObjectList($list)
131-
->setBackground(PHUIBoxView::GREY);
136+
->setObjectList($list);
137+
138+
if ($this->background) {
139+
$box->setBackground($this->background);
140+
}
141+
142+
return $box;
132143
}
133144

134145
}

webroot/rsrc/css/phui/phui-object-item-list-view.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,10 +735,9 @@ ul.phui-object-item-list-view .phui-object-item-selected
735735
.phui-object-item-image {
736736
width: 40px;
737737
height: 40px;
738-
box-shadow: inset 0 0 0 1px rgba(55,55,55,.15);
739738
border-radius: 3px;
740739
background-size: 100%;
741-
margin: 6px;
740+
margin: 8px 6px;
742741
position: absolute;
743742
}
744743

0 commit comments

Comments
 (0)