1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

Fix project hovercard tag alignment

Summary: Fix tag alignment on project cards when there are multiple tags. Also fixes T12381.

Test Plan: Review a project and people hovercard in sandbox, ensure multiple tags look as expected.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12381

Differential Revision: https://secure.phabricator.com/D17488
This commit is contained in:
Chad Little 2017-03-10 09:36:35 -08:00
parent 40391d089e
commit 4457c3866b
3 changed files with 9 additions and 3 deletions

View file

@ -96,7 +96,7 @@ return array(
'rsrc/css/application/policy/policy-transaction-detail.css' => '82100a43',
'rsrc/css/application/policy/policy.css' => '957ea14c',
'rsrc/css/application/ponder/ponder-view.css' => 'fbd45f96',
'rsrc/css/application/project/project-card-view.css' => 'e17bf825',
'rsrc/css/application/project/project-card-view.css' => '1be8c87b',
'rsrc/css/application/project/project-view.css' => '792c9057',
'rsrc/css/application/releeph/releeph-core.css' => '9b3c5733',
'rsrc/css/application/releeph/releeph-preview-branch.css' => 'b7a6f4a5',
@ -905,7 +905,7 @@ return array(
'policy-edit-css' => '815c66f7',
'policy-transaction-detail-css' => '82100a43',
'ponder-view-css' => 'fbd45f96',
'project-card-view-css' => 'e17bf825',
'project-card-view-css' => '1be8c87b',
'project-view-css' => '792c9057',
'releeph-core' => '9b3c5733',
'releeph-preview-branch' => 'b7a6f4a5',

View file

@ -31,6 +31,7 @@ final class PhabricatorUserCardView extends AphrontTagView {
protected function getTagAttributes() {
$classes = array();
$classes[] = 'project-card-view';
$classes[] = 'people-card-view';
if ($this->profile->getIsDisabled()) {
$classes[] = 'project-card-disabled';
@ -120,6 +121,7 @@ final class PhabricatorUserCardView extends AphrontTagView {
'a',
array(
'href' => $href,
'class' => 'project-card-image-href',
),
$image);

View file

@ -43,6 +43,10 @@
border-radius: 3px;
}
.project-card-view .project-card-image-href {
display: inline-block;
}
.project-card-view .project-card-item div {
display: inline;
}
@ -103,7 +107,7 @@
margin-top: 8px;
}
.project-card-view .phui-header-subheader .phui-tag-core {
.people-card-view .phui-header-subheader .phui-tag-core {
text-overflow: ellipsis;
white-space: nowrap;
max-width: 232px;