mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-02 01:27:14 +00:00
Feat: optimize dashboard UI and fix sql highlight (#1329)
Co-authored-by: hzh97 <2976151305@qq.com> Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import ChatFeedback from './chat-feedback';
|
||||
import { ChatContext } from '@/app/chat-context';
|
||||
import { FeedBack, IChatDialogueMessageSchema } from '@/types/chat';
|
||||
import classNames from 'classnames';
|
||||
import { Empty, Modal, message, Tooltip } from 'antd';
|
||||
import { Modal, message, Tooltip } from 'antd';
|
||||
import { renderModelIcon } from './header/model-selector';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import copy from 'copy-to-clipboard';
|
||||
@@ -20,6 +20,7 @@ import { getInitMessage } from '@/utils';
|
||||
import { apiInterceptors, getChatFeedBackSelect } from '@/client/api';
|
||||
import useSummary from '@/hooks/use-summary';
|
||||
import AgentContent from './agent-content';
|
||||
import MyEmpty from '../common/MyEmpty';
|
||||
|
||||
type Props = {
|
||||
messages: IChatDialogueMessageSchema[];
|
||||
@@ -200,12 +201,7 @@ const Completion = ({ messages, onSubmit }: Props) => {
|
||||
);
|
||||
})
|
||||
) : (
|
||||
<Empty
|
||||
image="/empty.png"
|
||||
imageStyle={{ width: 320, height: 320, margin: '0 auto', maxWidth: '100%', maxHeight: '100%' }}
|
||||
className="flex items-center justify-center flex-col h-full w-full"
|
||||
description="Start a conversation"
|
||||
/>
|
||||
<MyEmpty description="Start a conversation" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user