From 90ccd37a8c4778151c21a6922e6264cb2f2fac2a Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 27 Mar 2015 10:38:28 -0700 Subject: [PATCH] Add some spacing around jx-tooltips Summary: Using tooltips with icons is problematic because we currently draw the arrow after the tooltip location, meaning it goes 5px into the container. This gives a 5px padding around the outer container to better account for this. Test Plan: tested tooltips in remarkup bar, project icon nav, and in durable column. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12184 --- resources/celerity/map.php | 6 +++--- webroot/rsrc/css/aphront/tooltip.css | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 878ea86d26..ede5ff63de 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -7,7 +7,7 @@ */ return array( 'names' => array( - 'core.pkg.css' => 'f4d1cd07', + 'core.pkg.css' => '1601392f', 'core.pkg.js' => '75599122', 'darkconsole.pkg.js' => '8ab24e01', 'differential.pkg.css' => '5a0b221c', @@ -28,7 +28,7 @@ return array( 'rsrc/css/aphront/phabricator-nav-view.css' => '7aeaf435', 'rsrc/css/aphront/table-view.css' => '3e77fefe', 'rsrc/css/aphront/tokenizer.css' => '82ce2142', - 'rsrc/css/aphront/tooltip.css' => '4099b97e', + 'rsrc/css/aphront/tooltip.css' => '7672b60f', 'rsrc/css/aphront/transaction.css' => '042fc4bb', 'rsrc/css/aphront/two-column.css' => '16ab3ad2', 'rsrc/css/aphront/typeahead.css' => '0e403212', @@ -506,7 +506,7 @@ return array( 'aphront-panel-view-css' => '8427b78d', 'aphront-table-view-css' => '3e77fefe', 'aphront-tokenizer-control-css' => '82ce2142', - 'aphront-tooltip-css' => '4099b97e', + 'aphront-tooltip-css' => '7672b60f', 'aphront-two-column-view-css' => '16ab3ad2', 'aphront-typeahead-control-css' => '0e403212', 'auth-css' => '1e655982', diff --git a/webroot/rsrc/css/aphront/tooltip.css b/webroot/rsrc/css/aphront/tooltip.css index e20d69f79b..ab5f2339c7 100644 --- a/webroot/rsrc/css/aphront/tooltip.css +++ b/webroot/rsrc/css/aphront/tooltip.css @@ -4,6 +4,7 @@ .jx-tooltip-container { position: absolute; + padding: 5px; } .jx-tooltip-inner {