perf: app detail

This commit is contained in:
archer
2023-07-25 13:15:41 +08:00
parent 3adb97b396
commit c16e2b8dd6
29 changed files with 39 additions and 19 deletions

View File

@@ -90,7 +90,7 @@ const QuoteModal = ({
key={item.id}
flex={'1 0 0'}
p={2}
borderRadius={'sm'}
borderRadius={'lg'}
border={theme.borders.base}
_notLast={{ mb: 2 }}
position={'relative'}

View File

@@ -2,7 +2,6 @@ import React, { useCallback, useMemo, useState } from 'react';
import { ChatModuleEnum } from '@/constants/chat';
import { ChatHistoryItemResType, ChatItemType, QuoteItemType } from '@/types/chat';
import { Flex, BoxProps } from '@chakra-ui/react';
import { updateHistoryQuote } from '@/api/chat';
import dynamic from 'next/dynamic';
import Tag from '../Tag';
import MyTooltip from '../MyTooltip';
@@ -62,7 +61,7 @@ const ResponseDetailModal = ({
</MyTooltip>
)}
{completeMessages.length > 0 && (
<MyTooltip label={'点击查看完整对话记录'} forceShow>
<MyTooltip label={'点击查看完整对话记录'}>
<Tag
colorSchema="green"
cursor={'pointer'}

View File

@@ -584,6 +584,7 @@ const ChatBox = (
whiteSpace={'pre-wrap'}
{...MessageCardStyle}
bg={'myBlue.300'}
borderRadius={'8px 0 8px 8px'}
>
<Box as={'p'}>{item.value}</Box>
</Card>