fix: fix code block not display well in light mode #80
This commit is contained in:
parent
f112adc696
commit
0835fc588b
@ -22,7 +22,7 @@ export const CodeBlock: React.FC<{
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="group relative w-full overflow-auto">
|
<div className="group relative w-full overflow-auto">
|
||||||
<pre className="max-h-96 rounded-sm border border-zinc-800 bg-zinc-900 p-3 pr-12 text-sm">
|
<pre className="max-h-96 rounded-sm border border-zinc-200 bg-zinc-100 p-3 pr-12 text-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<code>{props.code}</code>
|
<code>{props.code}</code>
|
||||||
</pre>
|
</pre>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user