Skip to content

Commit

Permalink
fix: export
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed May 12, 2023
1 parent bdd518f commit 3e5118c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/pages/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ const Chat = ({
const getHistoryHtml = () => {
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
Expand Down Expand Up @@ -672,16 +671,8 @@ const Chat = ({
flex={'1 0 0'}
flexDirection={'column'}
>
<Box
id={'history'}
ref={ChatBox}
pb={[4, 0]}
flex={'1 0 0'}
h={0}
w={'100%'}
overflow={'overlay'}
>
<Box maxW={['auto', '800px', '1000px']} m={'auto'}>
<Box ref={ChatBox} pb={[4, 0]} flex={'1 0 0'} h={0} w={'100%'} overflow={'overlay'}>
<Box id={'history'} maxW={['auto', '800px', '1000px']} m={'auto'}>
{chatData.history.map((item, index) => (
<Flex key={item._id} alignItems={'flex-start'} py={2} px={[2, 4]}>
{item.obj === 'Human' && <Box flex={1} />}
Expand Down

0 comments on commit 3e5118c

Please sign in to comment.