minor UI fix
This commit is contained in:
parent
c254b99bbc
commit
6ca0fb693e
@ -531,7 +531,7 @@ sm-checkbox {
|
|||||||
|
|
||||||
.tooltip {
|
.tooltip {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 20;
|
z-index: 8;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.tooltip .banner {
|
.tooltip .banner {
|
||||||
|
|||||||
2
docs/css/main.min.css
vendored
2
docs/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -501,7 +501,7 @@ sm-checkbox {
|
|||||||
}
|
}
|
||||||
.tooltip {
|
.tooltip {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 20;
|
z-index: 8;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
.banner {
|
.banner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@ -1474,7 +1474,8 @@
|
|||||||
mobileQuery.addEventListener('change', handleMobileChange)
|
mobileQuery.addEventListener('change', handleMobileChange)
|
||||||
|
|
||||||
handleMobileChange(mobileQuery)
|
handleMobileChange(mobileQuery)
|
||||||
function showChild(id, index) {
|
document.addEventListener("visibilitychange", handleVisibilityChange, false);
|
||||||
|
function showChildElement(id, index) {
|
||||||
[...getRef(id).children].forEach((child, i) => {
|
[...getRef(id).children].forEach((child, i) => {
|
||||||
if (i === index)
|
if (i === index)
|
||||||
child.classList.remove('hide')
|
child.classList.remove('hide')
|
||||||
@ -1489,7 +1490,6 @@
|
|||||||
updateRate();
|
updateRate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
document.addEventListener("visibilitychange", handleVisibilityChange, false);
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
function buttonLoader(id, show = false) {
|
function buttonLoader(id, show = false) {
|
||||||
@ -1579,7 +1579,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSuggestedPrice(asset = pagesData.params.asset || 'FLO') {
|
function getSuggestedPrice(asset = pagesData.params.asset || 'FLO') {
|
||||||
return toFixed(parseFloat(floGlobals.exchangeRates[asset]) * deviation[tradeType], 8)
|
return toFixed(parseFloat(floGlobals.exchangeRates[asset]) * deviation[tradeType])
|
||||||
}
|
}
|
||||||
|
|
||||||
function showSuggestedPrice(asset = pagesData.params.asset || 'FLO') {
|
function showSuggestedPrice(asset = pagesData.params.asset || 'FLO') {
|
||||||
@ -1777,7 +1777,7 @@
|
|||||||
getRef('market_trades').innerHTML = '';
|
getRef('market_trades').innerHTML = '';
|
||||||
if (ordersType === 'open') {
|
if (ordersType === 'open') {
|
||||||
getRef('market_orders__title').textContent = 'Market-wide orders';
|
getRef('market_orders__title').textContent = 'Market-wide orders';
|
||||||
showChild('market_orders_wrapper', 0)
|
showChildElement('market_orders_wrapper', 0)
|
||||||
getRef('market_buy_orders').innerHTML = '<sm-spinner></sm-spinner>';
|
getRef('market_buy_orders').innerHTML = '<sm-spinner></sm-spinner>';
|
||||||
floExchangeAPI.getBuyList().then(buyOrders => {
|
floExchangeAPI.getBuyList().then(buyOrders => {
|
||||||
getRef('market_buy_orders').innerHTML = '';
|
getRef('market_buy_orders').innerHTML = '';
|
||||||
@ -1806,7 +1806,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
getRef('market_orders__title').textContent = 'Market-wide trades';
|
getRef('market_orders__title').textContent = 'Market-wide trades';
|
||||||
showChild('market_orders_wrapper', 1)
|
showChildElement('market_orders_wrapper', 1)
|
||||||
getRef('market_trades').innerHTML = '<sm-spinner></sm-spinner>';
|
getRef('market_trades').innerHTML = '<sm-spinner></sm-spinner>';
|
||||||
floExchangeAPI.getTradeList().then(trades => {
|
floExchangeAPI.getTradeList().then(trades => {
|
||||||
trades.forEach(transaction => {
|
trades.forEach(transaction => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user