diff --git a/src/view/phui/PHUIBadgeMiniView.php b/src/view/phui/PHUIBadgeMiniView.php index 5807336ca2..92d6fd8b8b 100644 --- a/src/view/phui/PHUIBadgeMiniView.php +++ b/src/view/phui/PHUIBadgeMiniView.php @@ -6,6 +6,7 @@ final class PHUIBadgeMiniView extends AphrontTagView { private $icon; private $quality; private $header; + private $tipDirection; public function setIcon($icon) { $this->icon = $icon; @@ -27,6 +28,11 @@ final class PHUIBadgeMiniView extends AphrontTagView { return $this; } + public function setTipDirection($direction) { + $this->tipDirection = $direction; + return $this; + } + protected function getTagName() { if ($this->href) { return 'a'; @@ -51,6 +57,8 @@ final class PHUIBadgeMiniView extends AphrontTagView { 'href' => $this->href, 'meta' => array( 'tip' => $this->header, + 'align' => $this->tipDirection, + 'size' => 300, ), ); } diff --git a/src/view/phui/PHUITimelineView.php b/src/view/phui/PHUITimelineView.php index 17178b8135..d8ba96c140 100644 --- a/src/view/phui/PHUITimelineView.php +++ b/src/view/phui/PHUITimelineView.php @@ -255,6 +255,7 @@ final class PHUITimelineView extends AphrontView { ->setIcon($badge->getIcon()) ->setQuality($badge->getQuality()) ->setHeader($badge->getName()) + ->setTipDirection('E') ->setHref('/badges/view/'.$badge->getID()); $event->addBadge($badge_view);