Wallet view supports screen sizes between 576px and 667px (#3193)

feature/default_network_editable
Dan J Miller 7 years ago committed by Alexander Tseung
parent e4895df953
commit d4da419c5b
  1. 7
      ui/app/account-and-transaction-details.js
  2. 29
      ui/app/components/token-cell.js
  3. 24
      ui/app/css/itcss/components/hero-balance.scss
  4. 13
      ui/app/css/itcss/components/newui-sections.scss
  5. 21
      ui/app/css/itcss/components/token-list.scss

@ -13,12 +13,7 @@ function AccountAndTransactionDetails () {
} }
AccountAndTransactionDetails.prototype.render = function () { AccountAndTransactionDetails.prototype.render = function () {
return h('div', { return h('div.account-and-transaction-details', [
style: {
display: 'flex',
flex: '1 0 auto',
},
}, [
// wallet // wallet
h(WalletView, { h(WalletView, {
style: { style: {

@ -111,20 +111,25 @@ TokenCell.prototype.render = function () {
network, network,
}), }),
h('h.token-list-item__balance-wrapper', null, [ h('div.token-list-item__balance-ellipsis', [
h('h3.token-list-item__token-balance', `${string || 0} ${symbol}`),
showFiat && h('div.token-list-item__fiat-amount', { h('h.token-list-item__balance-wrapper', null, [
style: {}, h('h3.token-list-item__token-balance', `${string || 0} ${symbol}`),
}, formattedFiat),
]),
h('i.fa.fa-ellipsis-h.fa-lg.token-list-item__ellipsis.cursor-pointer', { showFiat && h('div.token-list-item__fiat-amount', {
onClick: (e) => { style: {},
e.stopPropagation() }, formattedFiat),
this.setState({ tokenMenuOpen: true }) ]),
},
}), h('i.fa.fa-ellipsis-h.fa-lg.token-list-item__ellipsis.cursor-pointer', {
onClick: (e) => {
e.stopPropagation()
this.setState({ tokenMenuOpen: true })
},
}),
]),
tokenMenuOpen && h(TokenMenuDropdown, { tokenMenuOpen && h(TokenMenuDropdown, {
onClose: () => this.setState({ tokenMenuOpen: false }), onClose: () => this.setState({ tokenMenuOpen: false }),

@ -71,6 +71,22 @@
font-size: 105%; font-size: 105%;
} }
} }
@media #{$sub-mid-size-breakpoint-range} {
margin-left: .4em;
margin-right: .4em;
justify-content: flex-start;
align-items: flex-start;
.token-amount {
font-size: 1rem;
}
.fiat-amount {
margin-top: .25%;
font-size: 1rem;
}
}
} }
.hero-balance-buttons { .hero-balance-buttons {
@ -91,4 +107,12 @@
.hero-balance-button { .hero-balance-button {
width: 6rem; width: 6rem;
@media #{$sub-mid-size-breakpoint-range} {
padding: 0.4rem;
width: 4rem;
display: flex;
flex: 1;
justify-content: center;
}
} }

@ -1,3 +1,6 @@
$sub-mid-size-breakpoint: 667px;
$sub-mid-size-breakpoint-range: "screen and (min-width: #{$break-large}) and (max-width: #{$sub-mid-size-breakpoint})";
/* /*
NewUI Container Elements NewUI Container Elements
*/ */
@ -20,6 +23,12 @@ $wallet-view-bg: $alabaster;
display: none; display: none;
} }
//Account and transaction details
.account-and-transaction-details {
display: flex;
flex: 1 0 auto;
}
// tx view // tx view
.tx-view { .tx-view {
@ -60,6 +69,10 @@ $wallet-view-bg: $alabaster;
overflow-x: hidden; overflow-x: hidden;
} }
@media #{$sub-mid-size-breakpoint-range} {
min-width: 160px;
}
.wallet-view-account-details { .wallet-view-account-details {
flex: 0 0 auto; flex: 0 0 auto;
} }

@ -15,7 +15,7 @@ $wallet-balance-breakpoint-range: "screen and (min-width: #{$break-large}) and (
font-size: 1.5rem; font-size: 1.5rem;
@media #{$wallet-balance-breakpoint-range} { @media #{$wallet-balance-breakpoint-range} {
font-size: 105%; font-size: 95%;
} }
} }
@ -41,17 +41,22 @@ $wallet-balance-breakpoint-range: "screen and (min-width: #{$break-large}) and (
&__identicon { &__identicon {
margin-right: 15px; margin-right: 15px;
border: '1px solid #dedede'; border: '1px solid #dedede';
min-width: 50px;
@media #{$wallet-balance-breakpoint-range} { @media #{$wallet-balance-breakpoint-range} {
margin-right: 4%; margin-right: 4%;
} }
} }
&__balance-ellipsis {
display: flex;
align-items: center;
justify-content: space-around;
}
&__ellipsis { &__ellipsis {
// position: absolute;
// top: 20px;
// right: 24px;
line-height: 45px; line-height: 45px;
margin-left: 5px;
} }
&__balance-wrapper { &__balance-wrapper {
@ -61,7 +66,7 @@ $wallet-balance-breakpoint-range: "screen and (min-width: #{$break-large}) and (
.token-menu-dropdown { .token-menu-dropdown {
height: 55px; height: 55px;
width: 191px; width: 80%;
border-radius: 4px; border-radius: 4px;
background-color: rgba(0, 0, 0, .82); background-color: rgba(0, 0, 0, .82);
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .5); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .5);
@ -70,6 +75,10 @@ $wallet-balance-breakpoint-range: "screen and (min-width: #{$break-large}) and (
right: 25px; right: 25px;
z-index: 2000; z-index: 2000;
@media #{$wallet-balance-breakpoint-range} {
right: 18px;
}
&__close-area { &__close-area {
position: fixed; position: fixed;
top: 0; top: 0;
@ -81,7 +90,7 @@ $wallet-balance-breakpoint-range: "screen and (min-width: #{$break-large}) and (
} }
&__container { &__container {
padding: 16px 34px 32px; padding: 16px;
z-index: 2200; z-index: 2200;
position: relative; position: relative;
} }

Loading…
Cancel
Save