diff options
author | Dan <danjm.com@gmail.com> | 2017-08-30 00:13:43 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2017-08-30 00:13:43 +0800 |
commit | b251d0f675b77b56adfab12cc512f985ada79c49 (patch) | |
tree | 286847ed89bab97fa1b439a7145c3bf4f3b93f4f /ui/app/components | |
parent | cd5861541c1cb871d5e3b606501931f2aee0d048 (diff) | |
download | tangerine-wallet-browser-b251d0f675b77b56adfab12cc512f985ada79c49.tar.gz tangerine-wallet-browser-b251d0f675b77b56adfab12cc512f985ada79c49.tar.zst tangerine-wallet-browser-b251d0f675b77b56adfab12cc512f985ada79c49.zip |
Center tooltip on small screen size by using flexbox
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/gas-tooltip.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/gas-tooltip.js b/ui/app/components/gas-tooltip.js index 4b6472b44..29d1af4ad 100644 --- a/ui/app/components/gas-tooltip.js +++ b/ui/app/components/gas-tooltip.js @@ -59,7 +59,12 @@ GasTooltip.prototype.render = function () { const { position, title, children, className } = this.props const { gasPrice, gasLimit } = this.state - return h('div', {}, [ + return h('div', { + style: { + display: 'flex', + justifyContent: 'center', + } + }, [ h('div.gas-tooltip-close-area', { onClick: this.onClose }), |