From f66710f14a2d594cc7edc0ff264528fdbfd0b197 Mon Sep 17 00:00:00 2001 From: saml33 Date: Fri, 16 Apr 2021 21:50:56 +1000 Subject: [PATCH] font styling --- components/BalancesTable.tsx | 2 +- components/FeeDiscountsTable.tsx | 41 +- components/FloatingElement.tsx | 2 +- components/Input.tsx | 4 +- components/MarginBalances.tsx | 8 +- components/MenuItem.tsx | 2 +- components/OpenOrdersTable.tsx | 2 +- components/Orderbook.tsx | 4 +- components/RecentMarketTrades.tsx | 4 +- components/TopBar.tsx | 10 +- components/TradeForm.tsx | 2 +- components/TradeHistoryTable.tsx | 2 +- components/TradePageGrid.tsx | 2 +- components/TradeType.jsx | 2 +- components/UserInfo.tsx | 6 +- components/WalletSelect.tsx | 4 +- components/styles.tsx | 2 +- pages/_app.tsx | 6 +- report.20210416.204235.1315.0.001.json | 646 +++++++++++++++++++++++++ styles/index.css | 9 +- tailwind.config.js | 7 +- 21 files changed, 711 insertions(+), 56 deletions(-) create mode 100644 report.20210416.204235.1315.0.001.json diff --git a/components/BalancesTable.tsx b/components/BalancesTable.tsx index ec50820..92e54fc 100644 --- a/components/BalancesTable.tsx +++ b/components/BalancesTable.tsx @@ -142,7 +142,7 @@ const BalancesTable = () => { ) : (
No balances
diff --git a/components/FeeDiscountsTable.tsx b/components/FeeDiscountsTable.tsx index c550a8b..afd5d09 100644 --- a/components/FeeDiscountsTable.tsx +++ b/components/FeeDiscountsTable.tsx @@ -25,8 +25,29 @@ const FeeDiscountsTable = () => {
+ {connected ? ( +
+
+
+ Your SRM contribution +
+ {contributedSrm} +
+
+
+ + +
+
+
+ ) : null}
Total SRM in Mango
@@ -45,24 +66,6 @@ const FeeDiscountsTable = () => {
-
- {connected ? ( -
-
- Your contributed SRM: {contributedSrm} -
-
- - -
-
- ) : null} -
{showDeposit && ( )} diff --git a/components/FloatingElement.tsx b/components/FloatingElement.tsx index b86e0e5..40ea88b 100644 --- a/components/FloatingElement.tsx +++ b/components/FloatingElement.tsx @@ -35,7 +35,7 @@ const FloatingElement: FunctionComponent = ({ const { uiLocked } = useMangoStore((s) => s.settings) return (
{!uiLocked ? ( diff --git a/components/Input.tsx b/components/Input.tsx index 29379a7..c1e5ad1 100644 --- a/components/Input.tsx +++ b/components/Input.tsx @@ -27,12 +27,12 @@ const Input = ({ }: InputProps) => { return (
{prefix ? ( -
+
{prefix}
) : null} diff --git a/components/MarginBalances.tsx b/components/MarginBalances.tsx index 6cb0918..7d8b4b2 100644 --- a/components/MarginBalances.tsx +++ b/components/MarginBalances.tsx @@ -45,7 +45,7 @@ export default function MarginBalances() { > */}
{/* */} @@ -70,14 +70,14 @@ export default function MarginBalances() { {Object.entries(symbols).map(([name], i) => ( - + {name} @@ -126,7 +126,7 @@ export default function MarginBalances() { Withdraw
-
+
Settle funds in the Balances tab
diff --git a/components/MenuItem.tsx b/components/MenuItem.tsx index 67375bc..e4b2350 100644 --- a/components/MenuItem.tsx +++ b/components/MenuItem.tsx @@ -8,7 +8,7 @@ const MenuItem = ({ href, children }) => { {
) : (
No open orders
diff --git a/components/Orderbook.tsx b/components/Orderbook.tsx index 6f602e9..1ec18f1 100644 --- a/components/Orderbook.tsx +++ b/components/Orderbook.tsx @@ -14,7 +14,7 @@ const Line = styled.div` text-align: ${(props) => (props.invert ? 'left' : 'right')}; float: ${(props) => (props.invert ? 'left' : 'right')}; height: 100%; - filter: opacity(80%); + filter: opacity(70%); ${(props) => props['data-width'] && `width: ${props['data-width']};`} ` @@ -173,7 +173,7 @@ const OrderbookRow = React.memo( : price return ( -
+
{invert ? ( <>
diff --git a/components/RecentMarketTrades.tsx b/components/RecentMarketTrades.tsx index ef24406..59c05a7 100644 --- a/components/RecentMarketTrades.tsx +++ b/components/RecentMarketTrades.tsx @@ -43,7 +43,7 @@ export default function PublicTrades() { {!!trades.length && (
{trades.map((trade: ChartTradeType, i: number) => ( -
+
-
+
{trade.time && new Date(trade.time).toLocaleTimeString()}
diff --git a/components/TopBar.tsx b/components/TopBar.tsx index c0fce96..d2ea2fa 100644 --- a/components/TopBar.tsx +++ b/components/TopBar.tsx @@ -123,13 +123,11 @@ const TopBar = () => { {WALLET_OPTIONS.map(({ name, icon }) => ( ))} @@ -138,7 +136,7 @@ const TopBar = () => { )} ) : ( -
+