From 0a6a9121f083f113cac118c977fd2148a8ede24b Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 6 Sep 2020 18:52:56 -0700 Subject: [PATCH] fix wrapping when username is too long for the header bar --- src/app/PageLayout.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/PageLayout.js b/src/app/PageLayout.js index 5e0b3b3..66b5662 100644 --- a/src/app/PageLayout.js +++ b/src/app/PageLayout.js @@ -20,8 +20,7 @@ function PageLayout({ children, hideHomeLink }) { marginBottom="6" > {!hideHomeLink && } - - + {children} @@ -69,7 +68,7 @@ function HomeLink() { ); } -function UserLoginLogout() { +function UserLoginLogout(props) { const { isLoading, isAuthenticated, loginWithRedirect, logout } = useAuth0(); const { id, username } = useCurrentUser(); @@ -79,8 +78,12 @@ function UserLoginLogout() { if (isAuthenticated) { return ( - - {username && Hi, {username}!} + + {username && ( + + Hi, {username}! + + )} {id && (