fix: folder click shows overview doc, add same-name filter, move + to header

This commit is contained in:
2026-03-18 20:13:30 +08:00
parent c3ecebea89
commit 8a7f9ad6e8
4 changed files with 86 additions and 55 deletions

View File

@@ -44,19 +44,19 @@ export const DocContent = ({ content, onReferenceClick }: DocContentProps) => {
)
}
return (
<code className="text-zinc-300 font-mono text-base" {...props}>
<code className="text-zinc-300 font-mono text-lg" {...props}>
{children}
</code>
)
},
pre: ({ children }) => (
<pre className="bg-zinc-900 rounded-lg p-4 overflow-x-auto my-6 text-base leading-relaxed">
<pre className="bg-zinc-900 rounded-lg p-5 overflow-x-auto my-6 text-lg leading-relaxed">
{children}
</pre>
),
table: ({ children }) => (
<div className="overflow-x-auto my-6">
<table className="w-full text-base">
<table className="w-full text-lg">
{children}
</table>
</div>
@@ -67,12 +67,12 @@ export const DocContent = ({ content, onReferenceClick }: DocContentProps) => {
</thead>
),
th: ({ children }) => (
<th className="text-left py-3 pr-4 font-medium text-zinc-300 whitespace-nowrap">
<th className="text-left py-4 pr-4 font-medium text-zinc-300 whitespace-nowrap">
{children}
</th>
),
td: ({ children }) => (
<td className="py-3 pr-4 text-zinc-400">
<td className="py-4 pr-4 text-zinc-400">
{children}
</td>
),
@@ -82,7 +82,7 @@ export const DocContent = ({ content, onReferenceClick }: DocContentProps) => {
</tr>
),
h1: ({ children }) => (
<h1 className="text-3xl font-bold text-white mt-0 mb-8">
<h1 className="text-4xl font-bold text-white mt-0 mb-8">
{children}
</h1>
),
@@ -102,7 +102,7 @@ export const DocContent = ({ content, onReferenceClick }: DocContentProps) => {
</h4>
),
p: ({ children }) => (
<p className="text-base text-zinc-400 leading-relaxed my-4">
<p className="text-lg text-zinc-400 leading-relaxed my-4">
{children}
</p>
),