Skip to content

Commit ca2cd90

Browse files
committed
Fix z index of header to avoid conflict with ads
1 parent 31e298b commit ca2cd90

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

components/SigninButton.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const SigninButton = () => {
88

99
return (
1010
<>
11-
<Button data-testid="signin-btn" onClick={loginWithGoogle}>
11+
<Button
12+
className="z-20"
13+
data-testid="signin-btn"
14+
onClick={loginWithGoogle}
15+
>
1216
<GoogleIcon className="inline-flex mr-2" />
1317
Sign in/up
1418
</Button>

layout/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const Header = () => {
1111
return (
1212
<header data-testid="header" className="w-full">
1313
<nav className="w-full h-20 flex justify-between items-center max-w-7xl mx-auto px-4 sm:px-8 lg:px-12">
14-
<div className="flex justify-start items-center w-1/2 flex-shrink-0">
14+
<div className="flex z-40 justify-start items-center w-1/2 flex-shrink-0">
1515
<Link className="inline-flex items-center" href={"/"}>
1616
<Logo />
1717
</Link>
1818
</div>
19-
<div className="flex justify-end gap-4 items-center w-1/2 flex-shrink-0">
19+
<div className="flex z-40 justify-end gap-4 items-center w-1/2 flex-shrink-0">
2020
<ThemeToggle />
2121
{user?.uid ? (
2222
<>

0 commit comments

Comments
 (0)