1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 11:46:13 +02:00
metamask-extension/ui/app/components/transaction-view-balance/index.scss
Alexander Tseung 4c87c05a02
Fix rounding issue when sending max tokens (#5695)
* Fix rounding issue when sending max tokens

* Ensure amount row shows exact amount of max tokens on send screen (#2)

* Fix tests

* Change stored redux value from BigNumber to hex string. Fix TokenInput default value
2018-11-19 16:06:34 -08:00

74 lines
1.2 KiB
SCSS

.transaction-view-balance {
display: flex;
justify-content: space-between;
align-items: center;
flex: 1;
height: 54px;
min-width: 0;
@media screen and (max-width: $break-small) {
flex-direction: column;
height: initial;
width: 100%;
}
&__balance {
margin: 0 12px;
display: flex;
flex-direction: column;
min-width: 0;
@media screen and (max-width: $break-small) {
align-items: center;
margin: 16px 0;
padding: 0 16px;
max-width: 100%;
}
}
&__primary-balance {
font-size: 1.5rem;
@media screen and (max-width: $break-small) {
font-size: 1.75rem;
width: 100%;
}
}
&__secondary-balance {
font-size: 1.15rem;
color: #a0a0a0;
}
&__balance-container {
flex: 1;
display: flex;
flex-direction: row;
align-items: center;
min-width: 0;
@media screen and (max-width: $break-small) {
flex-direction: column;
width: 100%;
}
}
&__buttons {
display: flex;
flex-direction: row;
@media screen and (max-width: $break-small) {
margin-bottom: 16px;
}
}
&__button {
min-width: initial;
width: 100px;
&:not(:last-child) {
margin-right: 12px;
}
}
}