perf: v4.4.6-1 (#364)

This commit is contained in:
Archer
2023-09-28 17:30:05 +08:00
committed by GitHub
parent ab57bfcc4a
commit 36f5648cae
52 changed files with 753 additions and 594 deletions

View File

@@ -1171,9 +1171,8 @@ export const useChatBox = () => {
const historyDom = document.getElementById('history');
if (!historyDom) return;
const dom = Array.from(historyDom.children).map((child, i) => {
const avatar = `<img src="${
child.querySelector<HTMLImageElement>('.avatar')?.src
}" alt="" />`;
const avatar = `<img src="${child.querySelector<HTMLImageElement>('.avatar')
?.src}" alt="" />`;
const chatContent = child.querySelector<HTMLDivElement>('.markdown');

View File

@@ -19,8 +19,8 @@ function MyLink(e: any) {
{text}
</Link>
) : (
<Box as={'ul'}>
<Box as={'li'}>
<Box as={'ul'} mt={'0 !important'}>
<Box as={'li'} mb={1}>
<Box
as={'span'}
color={'blue.600'}
@@ -47,6 +47,7 @@ const Guide = ({ text }: { text: string }) => {
rehypePlugins={[RehypeKatex]}
components={{
a: MyLink,
p: 'div',
img: Image
}}
>