Skip to content

Commit 2e83cf3

Browse files
committed
make g and docs two links and update layout a bit
1 parent 4a4f3a4 commit 2e83cf3

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

website/src/layout/Layout.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -304,22 +304,23 @@ export default function Layout({ pageOpts, children }: NextraThemeLayoutProps<Fr
304304
{/* TODO: Fix issue where the page scrolls up when elements in the header are tabbed to */}
305305
<header
306306
className={`
307-
sticky top-0 z-10 grid h-[var(--graph-docs-header-height)] grid-cols-[1fr_auto_1fr] items-center border-b border-space-1500 bg-space-1800
307+
sticky top-0 z-10 grid h-[var(--graph-docs-header-height)] grid-cols-[auto_1fr_1fr] items-center border-b border-space-1500 bg-space-1800
308308
md:grid-cols-[var(--graph-docs-sidebar-width)_auto]
309309
`}
310310
>
311311
<div className="contents md:flex md:items-center md:justify-center md:ps-[var(--graph-docs-header-padding)]">
312-
<ButtonOrLink
313-
href="/"
314-
className="text-body-large flex items-center text-space-300 outline-offset-4 transition hover:text-white md:-ms-1 md:me-auto"
315-
>
316-
<span className="absolute -inset-2" />
317-
<TheGraph color="white" className="prop-size-8 md:prop-size-7" />
318-
<span className="flex items-center max-md:hidden">
319-
<span className="me-4.5 ms-3.5 h-5 w-px shrink-0 bg-space-1300" />
320-
<span>Docs</span>
321-
</span>
322-
</ButtonOrLink>
312+
<div className="flex w-full items-center max-md:ml-2">
313+
<ButtonOrLink href="https://thegraph.com/">
314+
<TheGraph color="white" className="prop-size-7" />
315+
</ButtonOrLink>
316+
<span className="me-4.5 ms-3.5 h-5 w-px shrink-0 bg-space-1300 " />
317+
<ButtonOrLink
318+
href="/"
319+
className="text-body-large text-space-300 outline-offset-4 transition hover:text-white md:-ms-1 md:me-auto"
320+
>
321+
Docs
322+
</ButtonOrLink>
323+
</div>
323324
<div className="order-first px-[var(--graph-docs-header-padding)] md:order-none md:px-0">
324325
<ExperimentalButton
325326
data-sidebar-expanded-on-mobile={sidebarExpandedOnMobile || undefined}

0 commit comments

Comments
 (0)