From 2a4ad3734bc028e3e1623b347017e5e0db4400f4 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 18 Dec 2021 17:23:34 -0800 Subject: [PATCH] Various spacing fixes --- web/components/header.tsx | 17 +++++++++++++---- web/components/user-page.tsx | 2 +- web/pages/account.tsx | 10 +++++++++- web/pages/landing-page.tsx | 19 ++++++++++--------- web/pages/tag/[tag].tsx | 8 +++----- 5 files changed, 36 insertions(+), 20 deletions(-) diff --git a/web/components/header.tsx b/web/components/header.tsx index 23a6dca0..b3921000 100644 --- a/web/components/header.tsx +++ b/web/components/header.tsx @@ -53,7 +53,7 @@ function SignedInHeaders(props: { user: User; themeClasses?: string }) { @@ -133,7 +137,12 @@ export function Header(props: { darkBackground?: boolean; children?: any }) { - + {children} {user ? ( diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 87ba0189..ed861e27 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -29,7 +29,7 @@ export function UserLink(props: { username: string; className?: string }) { function UserCard(props: { user: User; showPrivateInfo?: boolean }) { const { user, showPrivateInfo } = props return ( - +
{user?.avatarUrl && ( : + return user ? ( + + ) : ( +
+
+ +
+ ) } diff --git a/web/pages/landing-page.tsx b/web/pages/landing-page.tsx index 19559a9a..3f158b33 100644 --- a/web/pages/landing-page.tsx +++ b/web/pages/landing-page.tsx @@ -32,17 +32,18 @@ function Hero() { return (
-
-
- About -
-
-
+
+
+
+ About +
+
+
diff --git a/web/pages/tag/[tag].tsx b/web/pages/tag/[tag].tsx index 638e4e55..67e3d314 100644 --- a/web/pages/tag/[tag].tsx +++ b/web/pages/tag/[tag].tsx @@ -18,12 +18,10 @@ export default function TagPage() { } return ( -
+
-
- - <SearchableGrid contracts={contracts === 'loading' ? [] : contracts} /> - </div> + <Title text={`#${tag}`} /> + <SearchableGrid contracts={contracts === 'loading' ? [] : contracts} /> </div> ) }