Opt for calculated values in absolutely positioned caret

feature/default_network_editable
sdtsui 7 years ago
parent 0f140c5db5
commit d8fff0fc8c
  1. 7
      ui/app/components/wallet-view.js
  2. 3
      ui/app/css/itcss/components/hero-balance.scss

@ -58,7 +58,7 @@ WalletView.prototype.render = function () {
h('div.flex-column.flex-center', { h('div.flex-column.flex-center', {
style: { style: {
// constrains size of absolutely positioned wrappers // constrains size of absolutely positioned wrappers
position: 'relative', position: 'relative',
}, },
}, [ }, [
@ -83,7 +83,10 @@ WalletView.prototype.render = function () {
h(AccountDropdowns, { h(AccountDropdowns, {
style: { style: {
position: 'absolute', position: 'absolute',
left: '66.5%', left: 'calc(50% + 28px + 5.5px)',
// left: '42px',
// top: '-10px'
// left: '66.5%',
top: '19.5%', top: '19.5%',
}, },
selected, selected,

@ -3,6 +3,7 @@ $break-medium: 780px;
$break-large: 576px; $break-large: 576px;
.hero-balance { .hero-balance {
@media screen and (max-width: $break-small) { @media screen and (max-width: $break-small) {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -90,7 +91,9 @@ $break-large: 576px;
min-height: 28px; min-height: 28px;
font-size: .7em; font-size: .7em;
} }
} }
} }
} }
Loading…
Cancel
Save