Minor UI fixes
This commit is contained in:
parent
f9d400a12e
commit
f8721ee4f0
@ -203,7 +203,7 @@
|
|||||||
My orders
|
My orders
|
||||||
</h4>
|
</h4>
|
||||||
<strip-select id="my_orders_category_selector" class="tab">
|
<strip-select id="my_orders_category_selector" class="tab">
|
||||||
<strip-option value="open" selected>Open</strip-option>
|
<strip-option value="open" selected>Live</strip-option>
|
||||||
<strip-option value="completed">Trades</strip-option>
|
<strip-option value="completed">Trades</strip-option>
|
||||||
</strip-select>
|
</strip-select>
|
||||||
</div>
|
</div>
|
||||||
@ -252,14 +252,14 @@
|
|||||||
</button>
|
</button>
|
||||||
</h4>
|
</h4>
|
||||||
<strip-select id="market_orders_category_selector" class="tab">
|
<strip-select id="market_orders_category_selector" class="tab">
|
||||||
<strip-option value="open" selected>Open</strip-option>
|
<strip-option value="open" selected>Live</strip-option>
|
||||||
<strip-option value="completed">Trades</strip-option>
|
<strip-option value="completed">Trades</strip-option>
|
||||||
</strip-select>
|
</strip-select>
|
||||||
</div>
|
</div>
|
||||||
<div id="market_orders_wrapper">
|
<div id="market_orders_wrapper">
|
||||||
<div class="grid gap-1">
|
<div class="grid gap-1">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<h4>Open orders</h4>
|
<h4>Live orders</h4>
|
||||||
<p>Order placement denotes priority at which orders will get executed.</p>
|
<p>Order placement denotes priority at which orders will get executed.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex text-center">
|
<div class="flex text-center">
|
||||||
@ -2084,6 +2084,7 @@
|
|||||||
fill: 'forwards'
|
fill: 'forwards'
|
||||||
})
|
})
|
||||||
.onfinish = () => {
|
.onfinish = () => {
|
||||||
|
if (!target.parentNode) return
|
||||||
const height = target.getBoundingClientRect().height
|
const height = target.getBoundingClientRect().height
|
||||||
const siblings = Array.from(target.parentNode.children)
|
const siblings = Array.from(target.parentNode.children)
|
||||||
const nextSiblings = siblings.slice(siblings.indexOf(target) + 1)
|
const nextSiblings = siblings.slice(siblings.indexOf(target) + 1)
|
||||||
@ -2170,7 +2171,7 @@
|
|||||||
<b>${quantity} ${asset}</b>
|
<b>${quantity} ${asset}</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<p>${tradeType === 'buy' ? 'Min cost (Amount locked)' : 'Max earned'}</p>
|
<p>${tradeType === 'buy' ? 'Min cost' : 'Max earned'}</p>
|
||||||
<div>
|
<div>
|
||||||
<b>${minTotal}</b><span> @ ${currentPrice}/${asset}</span>
|
<b>${minTotal}</b><span> @ ${currentPrice}/${asset}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -2181,6 +2182,9 @@
|
|||||||
<b>${total}</b><span> @ ${price}/${asset}</span>
|
<b>${total}</b><span> @ ${price}/${asset}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<p>
|
||||||
|
<strong>All trades will be executed at current price.</strong>
|
||||||
|
</p>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user