UI: Support to disable prefetch on links

This commit is contained in:
fuma-nama
2024-07-16 12:31:32 +08:00
parent 4c46135584
commit 5d963f422b
4 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-ui': patch
---
Support to disable prefetching links on sidebar
+1
View File
@@ -1,6 +1,7 @@
import { DocsLayout } from 'fumadocs-ui/layout';
import type { ReactNode } from 'react';
import { docsOptions } from '@/app/layout.config';
import 'fumadocs-ui/twoslash.css';
export default function Layout({
children,
-1
View File
@@ -1,5 +1,4 @@
import './global.css';
import 'fumadocs-ui/twoslash.css';
import type { Viewport } from 'next';
import { GeistSans } from 'geist/font/sans';
import { GeistMono } from 'geist/font/mono';
+1 -1
View File
@@ -63,7 +63,7 @@ export function NavBox({
export function Title({ title, url = '/' }: TitleProps): React.ReactElement {
return (
<Link href={url} className="inline-flex items-center gap-2.5 font-semibold">
<Link href={url} className="inline-flex items-center gap-1.5 font-semibold">
{title}
</Link>
);