style: search models style

This commit is contained in:
jialin
2024-08-23 17:17:02 +08:00
parent 76444f28cb
commit a60be9c88f
24 changed files with 571 additions and 115 deletions
@@ -1,7 +1,7 @@
import hljs from 'highlight.js';
import 'highlight.js/styles/atom-one-dark.css';
import { memo, useMemo } from 'react';
import CopyButton from '../copy-button';
import './styles/dark.less';
import { escapeHtml } from './utils';
interface CodeViewerProps {
@@ -56,7 +56,7 @@ const CodeViewer: React.FC<CodeViewerProps> = (props) => {
}, [code, lang, autodetect, ignoreIllegals]);
return (
<pre className="code-pre">
<pre className="code-pre dark">
<code
className={highlightedCode.className}
dangerouslySetInnerHTML={{