Skip to content

Commit

Permalink
fixed searchbar page overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodriguespn committed Mar 4, 2024
1 parent 4a72567 commit dbbbb0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ const App: FC = () => {
{/* TODO: Make it so the navbar only opens once the user searches an address. For now it's fine like this. */}
{isAuthenticated && <Navbar userID={userID} open />}
<Routes>
{/* Unsaved graph without any link sharing. This is the default landing page. */}
<Route
path={`/*`}
element={<UnsavedGraphTemplate showLandingPage />}
/>
{/* Unsaved graph coming from a link */}
<Route
path={`/graph/:uid`}
element={<UnsavedGraphTemplate />}
/>
{/* Unsaved graph without any link sharing. This is the default landing page. */}
<Route
path={`/*`}
element={<UnsavedGraphTemplate showLandingPage />}
/>
{isAuthenticated && (
<>
{/* Graph saved by an account and constantly tracked */}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/UnsavedGraphTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ const UnsavedGraphTemplate: FC<UnsavedGraphTemplateProps> = ({
title="Graph"
description="Creating the next-gen of crypto compliance"
/>
<div className="h-full overflow-hidden ">
<div className="h-full w-full overflow-hidden ">
{isAuthenticated ? null : <LoginBanner />}
<Transition
show={!showGraph}
appear={true}
leave="transition-all duration-500"
leaveFrom="opacity-100 scale-100"
leaveTo="opacity-0 scale-50"
className="absolute flex h-full w-full flex-col items-center justify-center overflow-x-hidden no-scrollbar"
className="flex h-full w-full flex-col items-center justify-center overflow-x-hidden no-scrollbar"
>
<LandingPage
setSearchedAddress={(address: string) => {
Expand Down

0 comments on commit dbbbb0e

Please sign in to comment.