From a6109754b419d4160ef6ec890ea74835dbc6b039 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 22 Oct 2021 09:29:54 -0300 Subject: [PATCH 1/2] Fix home screen flickering --- src/Home.tsx | 15 ++++++++++----- src/Logo.tsx | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Home.tsx b/src/Home.tsx index 04824ce..dc79748 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -38,9 +38,11 @@ const Home: React.FC = () => { document.title = "Home | Otterscan"; return ( -
+
{isScanning && setScanning(false)} />} - +
+ +
{ > Search -
+ +
+
@@ -86,14 +90,15 @@ const Home: React.FC = () => {
{latestBlock && (
Latest block: {commify(latestBlock.number)}
)} - +
+
); }; diff --git a/src/Logo.tsx b/src/Logo.tsx index eb31768..3671e42 100644 --- a/src/Logo.tsx +++ b/src/Logo.tsx @@ -2,7 +2,7 @@ import React from "react"; import Otter from "./otter.jpg"; const Logo: React.FC = () => ( -
+
Date: Fri, 22 Oct 2021 15:08:46 -0300 Subject: [PATCH 2/2] Fix missing bottom padding grow --- src/App.tsx | 28 +++++++++++++--------------- src/StandardFrame.tsx | 2 +- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e11a960..9c7c1fe 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -53,21 +53,19 @@ const App = () => { -
- - <Route path="/block/:blockNumberOrHash" exact> - <Block /> - </Route> - <Route path="/block/:blockNumber/txs" exact> - <BlockTransactions /> - </Route> - <Route path="/tx/:txhash"> - <Transaction /> - </Route> - <Route path="/address/:addressOrName/:direction?"> - <AddressTransactions /> - </Route> - </div> + <Title /> + <Route path="/block/:blockNumberOrHash" exact> + <Block /> + </Route> + <Route path="/block/:blockNumber/txs" exact> + <BlockTransactions /> + </Route> + <Route path="/tx/:txhash"> + <Transaction /> + </Route> + <Route path="/address/:addressOrName/:direction?"> + <AddressTransactions /> + </Route> </AppConfigContext.Provider> </Route> </Switch> diff --git a/src/StandardFrame.tsx b/src/StandardFrame.tsx index 65fc076..10b5fe8 100644 --- a/src/StandardFrame.tsx +++ b/src/StandardFrame.tsx @@ -1,7 +1,7 @@ import React from "react"; const StandardFrame: React.FC = ({ children }) => ( - <div className="bg-gray-100 px-9 pt-3 pb-12">{children}</div> + <div className="flex-grow bg-gray-100 px-9 pt-3 pb-12">{children}</div> ); export default StandardFrame;