Skip to content

Commit 8f89823

Browse files
[BUGFIX] DefaultGradient bug (#3728)
* Update DefaultLayout.tsx * better handling of unapproved grants --------- Co-authored-by: Henry <43460021+MasterHW@users.noreply.github.com>
1 parent 8996d73 commit 8f89823

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

packages/grant-explorer/src/features/common/DefaultLayout.tsx

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,18 @@ export function GradientLayout({
4141
/>
4242
<div
4343
className={classNames(
44-
"container mx-auto max-w-screen-2xl relative z-10 px-4 sm:px-6 lg:px-20",
44+
"mx-auto w-full relative z-10 px-4 sm:px-6 lg:px-20",
4545
showAlloVersionBanner ? "pt-[120px]" : "pt-16"
4646
)}
47+
style={{
48+
background:
49+
"linear-gradient(180deg, #ADEDE5 -13.57%, rgba(21, 184, 220, 0.47) 45.05%, rgba(0,0,0,0) 92.61%)",
50+
}}
4751
>
4852
{children}
4953
</div>
5054

5155
<Footer />
52-
53-
{
54-
// FIXME: this is the wrong way to make a gradient for the main content
55-
// since it's a div that's covering the full page and any other content
56-
// without a higher z-index is not clickable.
57-
}
58-
<div
59-
className="min-h-screen absolute inset-0"
60-
style={{
61-
background:
62-
"linear-gradient(180deg, #ADEDE5 -13.57%, rgba(21, 184, 220, 0.47) 45.05%, rgba(0,0,0,0) 92.61%)",
63-
}}
64-
/>
6556
</main>
6657
);
6758
}

0 commit comments

Comments
 (0)