This commit is contained in:
Archer
2023-12-27 11:07:39 +08:00
committed by GitHub
parent 86286efb54
commit 759a2330e6
182 changed files with 3099 additions and 81685 deletions

View File

@@ -42,8 +42,7 @@ const ChatHeader = ({
alignItems={'center'}
px={[3, 5]}
h={['46px', '60px']}
borderBottom={theme.borders.base}
borderBottomColor={'gray.200'}
borderBottom={theme.borders.sm}
color={'myGray.900'}
>
{isPc ? (

View File

@@ -151,10 +151,10 @@ const ChatHistorySlider = ({
/>
)}
<Button
variant={'base'}
variant={'whitePrimary'}
flex={1}
h={'100%'}
color={'blue.600'}
color={'primary.600'}
borderRadius={'xl'}
leftIcon={<MyIcon name={'chat'} w={'16px'} />}
overflow={'hidden'}
@@ -167,7 +167,8 @@ const ChatHistorySlider = ({
<IconButton
ml={3}
h={'100%'}
variant={'base'}
variant={'whiteDanger'}
size={'mdSquare'}
aria-label={''}
borderRadius={'xl'}
onClick={openConfirm(onClearHistory)}
@@ -201,8 +202,8 @@ const ChatHistorySlider = ({
bg={item.top ? '#E6F6F6 !important' : ''}
{...(item.id === activeChatId
? {
backgroundColor: 'blue.50 !important',
color: 'blue.600'
backgroundColor: 'primary.50 !important',
color: 'primary.600'
}
: {
onClick: () => {
@@ -290,8 +291,8 @@ const ChatHistorySlider = ({
alignItems={'center'}
{...(item._id === appId
? {
backgroundColor: 'blue.50 !important',
color: 'blue.600'
backgroundColor: 'primary.50 !important',
color: 'primary.600'
}
: {
onClick: () => {
@@ -325,11 +326,10 @@ const ChatHistorySlider = ({
>
<IconButton
mr={3}
icon={<MyIcon name={'backFill'} w={'18px'} color={'blue.500'} />}
icon={<MyIcon name={'backFill'} w={'18px'} color={'primary.500'} />}
bg={'white'}
boxShadow={'1px 1px 9px rgba(0,0,0,0.15)'}
h={'28px'}
size={'sm'}
size={'smSquare'}
borderRadius={'50%'}
aria-label={''}
/>

View File

@@ -28,11 +28,10 @@ const SliderApps = ({ appId }: { appId: string }) => {
>
<IconButton
mr={3}
icon={<MyIcon name={'backFill'} w={'18px'} color={'blue.500'} />}
icon={<MyIcon name={'backFill'} w={'18px'} color={'primary.500'} />}
bg={'white'}
boxShadow={'1px 1px 9px rgba(0,0,0,0.15)'}
h={'28px'}
size={'sm'}
size={'smSquare'}
borderRadius={'50%'}
aria-label={''}
/>

View File

@@ -255,8 +255,8 @@ const Chat = ({ appId, chatId }: { appId: string; chatId: string }) => {
</Box>
)}
<PageContainer flex={'1 0 0'} w={0} bg={'myWhite.600'} position={'relative'}>
<Flex h={'100%'} flexDirection={['column', 'row']}>
<PageContainer flex={'1 0 0'} w={0} p={[0, '16px']} position={'relative'}>
<Flex h={'100%'} flexDirection={['column', 'row']} bg={'white'}>
{/* pc always show history. */}
{((children: React.ReactNode) => {
return isPc || !appId ? (

View File

@@ -258,11 +258,21 @@ const OutLink = ({
}, [clearLocalHistory, localUId, router, shareChatHistory, shareId, t, toast]);
return (
<PageContainer {...(isEmbed ? { p: '0 !important', borderRadius: '0' } : {})}>
<PageContainer
{...(isEmbed
? { p: '0 !important', insertProps: { borderRadius: '0', boxShadow: 'none' } }
: { p: [0, 5] })}
>
<Head>
<title>{chatData.app.name}</title>
</Head>
<MyBox isLoading={isFetching} h={'100%'} display={'flex'} flexDirection={['column', 'row']}>
<MyBox
isLoading={isFetching}
h={'100%'}
display={'flex'}
flexDirection={['column', 'row']}
bg={'white'}
>
{showHistory === '1'
? ((children: React.ReactNode) => {
return isPc ? (