Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15381958
D18292.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D18292.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -9,7 +9,7 @@
'names' => array(
'conpherence.pkg.css' => 'e68cf1fa',
'conpherence.pkg.js' => 'b5b51108',
- 'core.pkg.css' => 'd6046dd9',
+ 'core.pkg.css' => 'd9c9cfd0',
'core.pkg.js' => '5d80e0db',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '45951e9e',
@@ -127,7 +127,7 @@
'rsrc/css/layout/phabricator-source-code-view.css' => 'aea41829',
'rsrc/css/phui/button/phui-button-bar.css' => 'f1ff5494',
'rsrc/css/phui/button/phui-button-simple.css' => '8e1baf68',
- 'rsrc/css/phui/button/phui-button.css' => '3a744520',
+ 'rsrc/css/phui/button/phui-button.css' => '3ca51caa',
'rsrc/css/phui/calendar/phui-calendar-day.css' => '572b1893',
'rsrc/css/phui/calendar/phui-calendar-list.css' => '576be600',
'rsrc/css/phui/calendar/phui-calendar-month.css' => '21154caf',
@@ -825,7 +825,7 @@
'phui-big-info-view-css' => 'd13afcde',
'phui-box-css' => '745e881d',
'phui-button-bar-css' => 'f1ff5494',
- 'phui-button-css' => '3a744520',
+ 'phui-button-css' => '3ca51caa',
'phui-button-simple-css' => '8e1baf68',
'phui-calendar-css' => 'f1ddf11c',
'phui-calendar-day-css' => '572b1893',
diff --git a/src/applications/search/controller/PhabricatorApplicationSearchController.php b/src/applications/search/controller/PhabricatorApplicationSearchController.php
--- a/src/applications/search/controller/PhabricatorApplicationSearchController.php
+++ b/src/applications/search/controller/PhabricatorApplicationSearchController.php
@@ -554,7 +554,7 @@
return id(new PHUIButtonView())
->setTag('a')
->setHref('#')
- ->setText(pht('Use Results...'))
+ ->setText(pht('Use Results'))
->setIcon('fa-bars')
->setDropdownMenu($action_list)
->addClass('dropdown');
diff --git a/src/view/phui/PHUIButtonView.php b/src/view/phui/PHUIButtonView.php
--- a/src/view/phui/PHUIButtonView.php
+++ b/src/view/phui/PHUIButtonView.php
@@ -134,6 +134,7 @@
Javelin::initBehavior('phui-dropdown-menu');
$this->addSigil('phui-dropdown-menu');
+ $this->setDropdown(true);
$this->setMetadata($actions->getDropdownMenuMetadata());
return $this;
@@ -223,32 +224,29 @@
protected function getTagContent() {
- $icon = null;
- $text = $this->text;
- if ($this->icon) {
- $icon = $this->icon;
-
- $subtext = null;
- if ($this->subtext) {
- $subtext = phutil_tag(
- 'div',
- array(
- 'class' => 'phui-button-subtext',
- ),
- $this->subtext);
- }
-
- if ($this->text !== null) {
- $text = phutil_tag(
- 'div',
- array(
- 'class' => 'phui-button-text',
- ),
- array(
- $text,
- $subtext,
- ));
- }
+ $icon = $this->icon;
+ $text = null;
+ $subtext = null;
+
+ if ($this->subtext) {
+ $subtext = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-button-subtext',
+ ),
+ $this->subtext);
+ }
+
+ if ($this->text !== null) {
+ $text = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-button-text',
+ ),
+ array(
+ $this->text,
+ $subtext,
+ ));
}
$caret = null;
@@ -259,7 +257,7 @@
if ($this->iconFirst == true) {
return array($icon, $text, $caret);
} else {
- return array($text, $icon);
+ return array($text, $icon, $caret);
}
}
}
diff --git a/webroot/rsrc/css/phui/button/phui-button.css b/webroot/rsrc/css/phui/button/phui-button.css
--- a/webroot/rsrc/css/phui/button/phui-button.css
+++ b/webroot/rsrc/css/phui/button/phui-button.css
@@ -270,7 +270,7 @@
}
.dropdown .phui-button-text {
- margin-right: 16px;
+ margin-right: 8px;
}
.button.has-icon .phui-button-text {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 10:04 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7689707
Default Alt Text
D18292.diff (3 KB)
Attached To
Mode
D18292: Clean up dropdown carets
Attached
Detach File
Event Timeline
Log In to Comment