Skip to content

Commit 37e758f

Browse files
tannerlinsleyTanner Linsley
andauthored
fix(docs): expose library repository in desktop navigation (#1433)
Co-authored-by: Tanner Linsley <tannerlinsley@Tanners-MacBook-Pro.local>
1 parent cd8927e commit 37e758f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎src/components/LibraryLayout.tsx‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,17 @@ export function LibraryLayout({
14301430
Sponsor-supported
14311431
</Link>
14321432
</div>
1433-
) : null}
1433+
) : (
1434+
<a
1435+
href={`https://github.com/${repo}`}
1436+
target="_blank"
1437+
rel="noreferrer"
1438+
className="hidden shrink-0 items-center gap-1.5 px-5 text-xs font-semibold text-text-primary/60 transition-colors hover:text-text-primary xl:inline-flex"
1439+
>
1440+
<GithubIcon className="size-4" />
1441+
GitHub
1442+
</a>
1443+
)}
14341444
{shouldShowDocsPartnerSlot && activePartners.length ? (
14351445
<DocsPartnerSlot
14361446
orderPlacementContext={docsPartnerOrderContext}

0 commit comments

Comments
 (0)