Minor bug fixes
This commit is contained in:
parent
a5df7a7248
commit
3e8a58442d
@ -724,6 +724,10 @@ sm-checkbox {
|
||||
width: 1.2rem;
|
||||
}
|
||||
|
||||
.orders_section__header {
|
||||
min-height: 2.8rem;
|
||||
}
|
||||
|
||||
.list__item {
|
||||
padding: 0.5rem 0;
|
||||
display: grid;
|
||||
@ -741,6 +745,7 @@ sm-checkbox {
|
||||
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
||||
grid-template-columns: -webkit-min-content repeat(3, 1fr) -webkit-min-content;
|
||||
grid-template-columns: min-content repeat(3, 1fr) min-content;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
.order-card__type {
|
||||
font-size: 0.9rem;
|
||||
@ -854,6 +859,7 @@ sm-checkbox {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
.balance-card.is-locked {
|
||||
padding: 1rem 0.5rem;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
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
@ -687,6 +687,9 @@ sm-checkbox {
|
||||
width: 1.2rem;
|
||||
}
|
||||
}
|
||||
.orders_section__header {
|
||||
min-height: 2.8rem;
|
||||
}
|
||||
|
||||
.list__item {
|
||||
padding: 0.5rem 0;
|
||||
@ -700,6 +703,7 @@ sm-checkbox {
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
|
||||
grid-template-columns: min-content repeat(3, 1fr) min-content;
|
||||
border-radius: 0.5rem;
|
||||
&__type {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
@ -815,6 +819,7 @@ sm-checkbox {
|
||||
background-color: rgba(var(--foreground-color), 1);
|
||||
padding: 0.5rem;
|
||||
&.is-locked {
|
||||
padding: 1rem 0.5rem;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
gap: 0.5rem;
|
||||
.balance-card__icon {
|
||||
|
||||
@ -1199,7 +1199,7 @@
|
||||
card.querySelector('.order-card__quantity').textContent = `${quantity} ${asset}`
|
||||
card.querySelector('.order-card__price-type').textContent = type === 'buy' ? 'Max price' : 'Min price'
|
||||
card.querySelector('.order-card__price').textContent = formatAmount(price)
|
||||
card.querySelector('.order-card__time').textContent = relativeTime.from(time)
|
||||
card.querySelector('.order-card__time').textContent = relativeTime.from(new Date(time).getTime())
|
||||
return card
|
||||
},
|
||||
transactionCard(transactionDetails = {}) {
|
||||
@ -1435,9 +1435,11 @@
|
||||
}
|
||||
}
|
||||
function setChartTheme(e) {
|
||||
const themeToApply = getChartTheme()
|
||||
chart.applyOptions(themeToApply.chart);
|
||||
lineSeries.applyOptions(themeToApply.series);
|
||||
if (chart) {
|
||||
const themeToApply = getChartTheme()
|
||||
chart.applyOptions(themeToApply.chart);
|
||||
lineSeries.applyOptions(themeToApply.series);
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('themechange', setChartTheme)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user