diff --git a/src/lib/formatPrice.js b/src/lib/formatPrice.js index 6c98ae6..aba4143 100644 --- a/src/lib/formatPrice.js +++ b/src/lib/formatPrice.js @@ -37,6 +37,7 @@ const formatPrice = ( showSign = false, useQuote = true, ) => { + if (!price) return Number.NaN; const calculatedPrice = getPrice(price, currency, useQuote); return ( (showSign diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9a6d9ae..9639a03 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -71,7 +71,7 @@ Object.groupBy ||= (values, keyFinder) => { margin-top:auto; text-align:center; } - .col{ + .col { display:flex; flex-direction: column; align-items: center; @@ -108,12 +108,15 @@ Object.groupBy ||= (values, keyFinder) => { text-align:right; padding:.3em; } - th:first-child, td:first-child{ + th:first-child, td:first-child { text-align:left; } - tr:nth-child(2n){ + tbody tr:nth-child(2n) { background-color: #0002; } + tfoot { + border-top: #0004 double 4px; + } } } @@ -121,7 +124,7 @@ Object.groupBy ||= (values, keyFinder) => { text-decoration: none; color:#f60; } - a:hover{ + a:hover { text-decoration: underline; } .price { @@ -159,7 +162,7 @@ Object.groupBy ||= (values, keyFinder) => { justify-content: center; gap:.2em; } - @media only screen and (max-width: 600px){ + @media only screen and (max-width: 600px) { .header > * { width:initial; } diff --git a/src/routes/market/[market]/+page.svelte b/src/routes/market/[market]/+page.svelte index e67aeb1..2125983 100644 --- a/src/routes/market/[market]/+page.svelte +++ b/src/routes/market/[market]/+page.svelte @@ -72,11 +72,13 @@ const BUY_SELL = isMoneroQuote(market) ? ["SELL", "BUY"] : ["BUY", "SELL"];