Widen PHUIPropertyListView when ActionList isn't attached

Summary: This makes PHUIPropertyList display wider when an ActionList isn't present.

Test Plan: Review Diff Details in a Diff. Test mobile and desktop layouts.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13568
This commit is contained in:
Chad Little
2015-10-28 11:15:18 -07:00
committed by Chad Little
parent d92f7a1473
commit 526aa48f8b
3 changed files with 15 additions and 6 deletions

View File

@@ -127,6 +127,7 @@ final class PHUIPropertyListView extends AphrontView {
// If we have an action list, make sure we render a property part, even
// if there are no properties. Otherwise, the action list won't render.
if ($this->actionList) {
$this->classes[] = 'phui-property-list-has-actions';
$have_property_part = false;
foreach ($this->parts as $part) {
if ($part['type'] == 'property') {