font without slashed zero

This commit is contained in:
tjs 2022-09-18 19:01:57 -04:00
parent 2fea0ed266
commit 14f99ff0d6
4 changed files with 25 additions and 13 deletions

View File

@ -382,7 +382,7 @@ const Orderbook = ({ depth = 12 }) => {
</Tooltip> </Tooltip>
</div> </div>
<div className="flex items-center justify-between px-4 pb-2 text-xs text-th-fgd-4"> <div className="flex items-center justify-between px-4 pb-2 text-xs text-th-fgd-4">
<div>Size</div> <div className="pl-4">Size</div>
<div>Price</div> <div>Price</div>
</div> </div>
<div className=""> <div className="">
@ -535,17 +535,19 @@ const OrderbookRow = ({
> >
<> <>
<div className="flex w-full items-center justify-between hover:bg-th-bkg-2"> <div className="flex w-full items-center justify-between hover:bg-th-bkg-2">
<div <div className="flex w-full justify-start pl-2">
style={{ fontFeatureSettings: 'zero 1' }} <div
className={`z-10 ml-4 text-right font-mono text-xs tabular-nums leading-5 md:leading-6 ${ style={{ fontFeatureSettings: 'zero 1' }}
/*hasOpenOrder*/ false ? 'text-th-primary' : 'text-th-fgd-3' className={`z-10 w-16 text-right font-mono text-xs leading-5 md:leading-6 ${
}`} /*hasOpenOrder*/ false ? 'text-th-primary' : ''
// onClick={handleSizeClick} }`}
> // onClick={handleSizeClick}
{formattedSize.toFixed(minOrderSizeDecimals)} >
{formattedSize.toFixed(minOrderSizeDecimals)}
</div>
</div> </div>
<div <div
className={`z-10 pr-4 font-mono text-xs tabular-nums leading-5 text-th-fgd-3 hover:normal-nums md:leading-6`} className={`z-10 w-full pr-4 text-right font-mono text-xs leading-5 md:leading-6`}
// onClick={handlePriceClick} // onClick={handlePriceClick}
> >
{formattedPrice.toFixed(groupingDecimalCount)} {formattedPrice.toFixed(groupingDecimalCount)}

View File

@ -10,10 +10,10 @@ class MyDocument extends Document {
href="https://fonts.googleapis.com/css2?family=Lato:wght@200;300;400;500;600;700&display=swap" href="https://fonts.googleapis.com/css2?family=Lato:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet" rel="stylesheet"
/> />
<link {/* <link
href="https://fonts.googleapis.com/css?family=Roboto Mono&display=swap" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono&display=swap"
rel="stylesheet" rel="stylesheet"
></link> ></link> */}
<Script <Script
src="/datafeeds/udf/dist/bundle.js" src="/datafeeds/udf/dist/bundle.js"
strategy="beforeInteractive" strategy="beforeInteractive"

BIN
public/fonts/roboto.woff Normal file

Binary file not shown.

View File

@ -2,6 +2,11 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@font-face {
font-family: "Roboto Mono";
src: url("/fonts/roboto.woff");
}
/* Reset */ /* Reset */
html, html,
@ -266,6 +271,11 @@ table p {
/* Scrollbars */ /* Scrollbars */
.font-mono {
-webkit-font-feature-settings: "zero" 1;
font-feature-settings: "zero" 1;
}
.hide-scroll::-webkit-scrollbar { .hide-scroll::-webkit-scrollbar {
width: 0px; width: 0px;
height: 0px; height: 0px;