Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15283721
D18461.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18461.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' => 'fe4effd6',
+ 'core.pkg.css' => 'd254d540',
'core.pkg.js' => '6c085267',
'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' => '340f55c1',
+ 'rsrc/css/phui/button/phui-button.css' => 'a37aa3a8',
'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',
@@ -824,7 +824,7 @@
'phui-big-info-view-css' => 'acc3492c',
'phui-box-css' => '745e881d',
'phui-button-bar-css' => 'f1ff5494',
- 'phui-button-css' => '340f55c1',
+ 'phui-button-css' => 'a37aa3a8',
'phui-button-simple-css' => '8e1baf68',
'phui-calendar-css' => 'f1ddf11c',
'phui-calendar-day-css' => '572b1893',
diff --git a/src/applications/uiexample/examples/PHUIButtonExample.php b/src/applications/uiexample/examples/PHUIButtonExample.php
--- a/src/applications/uiexample/examples/PHUIButtonExample.php
+++ b/src/applications/uiexample/examples/PHUIButtonExample.php
@@ -58,10 +58,12 @@
array(
'text' => pht('Comment'),
'icon' => 'fa-comment',
+ 'dropdown' => true,
),
array(
'text' => pht('Give Token'),
'icon' => 'fa-trophy',
+ 'dropdown' => true,
),
array(
'text' => pht('Reverse Time'),
@@ -73,9 +75,11 @@
),
array(
'icon' => 'fa-rocket',
+ 'dropdown' => true,
),
array(
'icon' => 'fa-clipboard',
+ 'dropdown' => true,
),
array(
'icon' => 'fa-upload',
@@ -95,7 +99,8 @@
->setColor(PHUIButtonView::GREY)
->setIcon(idx($spec, 'icon'))
->setText(idx($spec, 'text'))
- ->addClass(PHUI::MARGIN_SMALL_RIGHT);
+ ->addClass(PHUI::MARGIN_SMALL_RIGHT)
+ ->setDropdown(idx($spec, 'dropdown'));
$copy = idx($spec, 'copy');
if ($copy !== null) {
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
@@ -271,11 +271,17 @@
position: relative;
}
+.button.has-icon.dropdown .phui-icon-view {
+ margin-right: 8px;
+ margin-left: -2px;
+}
+
.button.has-text .phui-icon-view {
display: inline-block;
position: absolute;
top: 7px;
left: 12px;
+ margin: 0;
}
.button.icon-last .phui-icon-view {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 8:21 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224168
Default Alt Text
D18461.diff (2 KB)
Attached To
Mode
D18461: Have text-less dropdown buttons look better
Attached
Detach File
Event Timeline
Log In to Comment