Center account selection dropdown and specify useCssTransition prop

feature/default_network_editable
sdtsui 7 years ago
parent f2f2d35992
commit 1743ccbdb5
  1. 11
      ui/app/components/dropdowns/components/account-dropdowns.js
  2. 2
      ui/app/components/wallet-view.js

@ -64,16 +64,16 @@ class AccountDropdowns extends Component {
}
renderAccountSelector () {
const { actions, dropdownWrapperStyle } = this.props
const { actions, dropdownWrapperStyle, useCssTransition } = this.props
const { accountSelectorActive, menuItemStyles } = this.state
return h(
Dropdown,
{
useCssTransition: true, // Hardcoded because account selector is temporarily in app-header
useCssTransition,
style: {
marginLeft: '-238px',
marginTop: '38px',
marginLeft: '-185px',
marginTop: '50px',
minWidth: '180px',
overflowY: 'auto',
maxHeight: '300px',
@ -150,12 +150,13 @@ class AccountDropdowns extends Component {
}
renderAccountOptions () {
const { actions, dropdownWrapperStyle } = this.props
const { actions, dropdownWrapperStyle, useCssTransition } = this.props
const { optionsMenuActive, menuItemStyles } = this.state
return h(
Dropdown,
{
useCssTransition,
style: Object.assign(
{
marginLeft: '-10px',

@ -72,6 +72,7 @@ WalletView.prototype.render = function () {
selected: selectedAddress,
network,
identities,
useCssTransition: true,
enableAccountOptions: true,
dropdownWrapperStyle: {
padding: '1px 15px',
@ -100,6 +101,7 @@ WalletView.prototype.render = function () {
left: 'calc(50% + 28px + 5.5px)',
top: '14px',
},
useCssTransition: true,
selected: selectedAddress,
network,
identities,

Loading…
Cancel
Save