Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14009586
D12452.id29906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D12452.id29906.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
@@ -7,8 +7,8 @@
*/
return array(
'names' => array(
- 'core.pkg.css' => 'f46ba5fa',
- 'core.pkg.js' => 'b00140fe',
+ 'core.pkg.css' => 'd3651813',
+ 'core.pkg.js' => '347cd64a',
'darkconsole.pkg.js' => '8ab24e01',
'differential.pkg.css' => '3500921f',
'differential.pkg.js' => 'c0506961',
@@ -27,7 +27,7 @@
'rsrc/css/aphront/panel-view.css' => '8427b78d',
'rsrc/css/aphront/phabricator-nav-view.css' => '7aeaf435',
'rsrc/css/aphront/table-view.css' => '59e2c0f8',
- 'rsrc/css/aphront/tokenizer.css' => '6fd738ea',
+ 'rsrc/css/aphront/tokenizer.css' => 'c10c061e',
'rsrc/css/aphront/tooltip.css' => '7672b60f',
'rsrc/css/aphront/two-column.css' => '16ab3ad2',
'rsrc/css/aphront/typeahead-browse.css' => '343ab59f',
@@ -222,7 +222,7 @@
'rsrc/externals/javelin/lib/__tests__/URI.js' => '1e45fda9',
'rsrc/externals/javelin/lib/__tests__/behavior.js' => '1ea62783',
'rsrc/externals/javelin/lib/behavior.js' => '61cbc29a',
- 'rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js' => 'dc708b7e',
+ 'rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js' => '3ff74d77',
'rsrc/externals/javelin/lib/control/typeahead/Typeahead.js' => '70baed2f',
'rsrc/externals/javelin/lib/control/typeahead/normalizer/TypeaheadNormalizer.js' => 'e6e25838',
'rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadCompositeSource.js' => '503e17fd',
@@ -510,7 +510,7 @@
'aphront-pager-view-css' => '2e3539af',
'aphront-panel-view-css' => '8427b78d',
'aphront-table-view-css' => '59e2c0f8',
- 'aphront-tokenizer-control-css' => '6fd738ea',
+ 'aphront-tokenizer-control-css' => 'c10c061e',
'aphront-tooltip-css' => '7672b60f',
'aphront-two-column-view-css' => '16ab3ad2',
'aphront-typeahead-control-css' => '0e403212',
@@ -689,7 +689,7 @@
'javelin-scrollbar' => 'eaa5b321',
'javelin-sound' => '949c0fe5',
'javelin-stratcom' => '6c53634d',
- 'javelin-tokenizer' => 'dc708b7e',
+ 'javelin-tokenizer' => '3ff74d77',
'javelin-typeahead' => '70baed2f',
'javelin-typeahead-composite-source' => '503e17fd',
'javelin-typeahead-normalizer' => 'e6e25838',
@@ -1093,6 +1093,12 @@
'javelin-dom',
'phortune-credit-card-form',
),
+ '3ff74d77' => array(
+ 'javelin-dom',
+ 'javelin-util',
+ 'javelin-stratcom',
+ 'javelin-install',
+ ),
'40a6a403' => array(
'javelin-install',
'javelin-dom',
@@ -1345,9 +1351,6 @@
'javelin-vector',
'javelin-stratcom',
),
- '6fd738ea' => array(
- 'aphront-typeahead-control-css',
- ),
'70baed2f' => array(
'javelin-install',
'javelin-dom',
@@ -1761,6 +1764,9 @@
'javelin-util',
'phabricator-shaped-request',
),
+ 'c10c061e' => array(
+ 'aphront-typeahead-control-css',
+ ),
'c1700f6f' => array(
'javelin-install',
'javelin-util',
@@ -1834,12 +1840,6 @@
'javelin-dom',
'phabricator-busy',
),
- 'dc708b7e' => array(
- 'javelin-dom',
- 'javelin-util',
- 'javelin-stratcom',
- 'javelin-install',
- ),
'de2e896f' => array(
'javelin-behavior',
'javelin-dom',
diff --git a/src/view/control/AphrontTokenizerTemplateView.php b/src/view/control/AphrontTokenizerTemplateView.php
--- a/src/view/control/AphrontTokenizerTemplateView.php
+++ b/src/view/control/AphrontTokenizerTemplateView.php
@@ -69,18 +69,14 @@
$content);
$icon = id(new PHUIIconView())
- ->setIconFont('fa-list-ul');
+ ->setIconFont('fa-search');
- // TODO: This thing is ugly and the ugliness is not intentional.
- // We have to give it text or PHUIButtonView collapses. It should likely
- // just be an icon and look more integrated into the input.
$browse = id(new PHUIButtonView())
->setTag('a')
->setIcon($icon)
- ->addSigil('tokenizer-browse')
+ ->addClass('tokenizer-browse-button')
->setColor(PHUIButtonView::GREY)
- ->setSize(PHUIButtonView::SMALL)
- ->setText(pht('Browse...'));
+ ->addSigil('tokenizer-browse');
$classes = array();
$classes[] = 'jx-tokenizer-frame';
@@ -90,29 +86,15 @@
}
$frame = javelin_tag(
- 'table',
+ 'div',
array(
'class' => implode(' ', $classes),
'sigil' => 'tokenizer-frame',
),
- phutil_tag(
- 'tr',
- array(
- ),
- array(
- phutil_tag(
- 'td',
- array(
- 'class' => 'jx-tokenizer-frame-input',
- ),
- $container),
- phutil_tag(
- 'td',
- array(
- 'class' => 'jx-tokenizer-frame-browse',
- ),
- $browse),
- )));
+ array(
+ $container,
+ $browse,
+ ));
return $frame;
}
diff --git a/webroot/rsrc/css/aphront/tokenizer.css b/webroot/rsrc/css/aphront/tokenizer.css
--- a/webroot/rsrc/css/aphront/tokenizer.css
+++ b/webroot/rsrc/css/aphront/tokenizer.css
@@ -150,24 +150,36 @@
margin-top: 2px;
}
-.jx-tokenizer-frame {
- width: 100%;
+.jx-tokenizer-frame .button.tokenizer-browse-button {
+ display: none;
}
-.jx-tokenizer-frame .jx-tokenizer-frame-browse {
- display: none;
+.jx-tokenizer-frame.has-browse .button.tokenizer-browse-button {
+ display: block;
}
-.has-browse .jx-tokenizer-frame-browse {
- display: table-cell;
+.jx-tokenizer-frame.has-browse {
+ position: relative;
}
-.jx-tokenizer-frame td.jx-tokenizer-frame-input {
- width: 100%;
+.jx-tokenizer-frame.has-browse div.jx-tokenizer-container {
+ padding-right: 32px;
}
-.jx-tokenizer-frame-browse {
- width: 100px;
- vertical-align: middle;
- padding: 0 0 0 4px;
+.button.tokenizer-browse-button {
+ position: absolute;
+ top: 1px;
+ right: 1px;
+ bottom: 1px;
+ border-radius: 0;
+ border-right: none;
+ border-top: none;
+ border-bottom: none;
+ padding: 0;
+ width: 30px;
+}
+
+.button.tokenizer-browse-button .phui-icon-view {
+ top: 7px;
+ left: 9px;
}
diff --git a/webroot/rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js b/webroot/rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js
--- a/webroot/rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js
+++ b/webroot/rsrc/externals/javelin/lib/control/tokenizer/Tokenizer.js
@@ -79,7 +79,7 @@
this._tokenMap = {};
try {
- this._frame = JX.DOM.findAbove(this._orig, 'table', 'tokenizer-frame');
+ this._frame = JX.DOM.findAbove(this._orig, 'div', 'tokenizer-frame');
} catch (e) {
// Ignore, this tokenizer doesn't have a frame.
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 31, 8:16 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722585
Default Alt Text
D12452.id29906.diff (6 KB)
Attached To
Mode
D12452: Make the browse button on the tokenizer, be on the tokenizer
Attached
Detach File
Event Timeline
Log In to Comment