chore: dark config
This commit is contained in:
@@ -48,8 +48,6 @@ interface MessageProps {
|
||||
|
||||
const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
const { modelList } = props;
|
||||
const acceptType =
|
||||
'.txt, .doc, .docx, .xls, .xlsx, .csv, .md, .pdf, .eml, .msg, .ppt, .pptx, .xml, .epub, .html';
|
||||
const messageId = useRef<number>(0);
|
||||
|
||||
const intl = useIntl();
|
||||
@@ -266,15 +264,6 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
setShow(false);
|
||||
};
|
||||
|
||||
const handleUpdateFileList = (
|
||||
files: { text: string; name: string; uid: number | string }[]
|
||||
) => {
|
||||
console.log('files:', files);
|
||||
setFileList((preList) => {
|
||||
return [...preList, ...files];
|
||||
});
|
||||
};
|
||||
|
||||
const handleScaleOutputSize = (
|
||||
e: any,
|
||||
direction: string,
|
||||
@@ -445,18 +434,6 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
[]
|
||||
);
|
||||
|
||||
// useHotkeys(
|
||||
// HotKeys.SUBMIT,
|
||||
// (e: any) => {
|
||||
// e.preventDefault();
|
||||
// handleSendMessage();
|
||||
// },
|
||||
// {
|
||||
// enabled: !loading,
|
||||
// preventDefault: true
|
||||
// }
|
||||
// );
|
||||
|
||||
useEffect(() => {
|
||||
if (scroller.current) {
|
||||
initialize(scroller.current);
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
justify-content: space-between;
|
||||
padding: 0;
|
||||
padding-right: 6px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
border-radius: var(--border-radius-base);
|
||||
border: 1px solid var(--ant-color-border);
|
||||
background-color: #fff;
|
||||
|
||||
.btn-group {
|
||||
display: none;
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
padding-top: 16px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: var(--color-white-1);
|
||||
z-index: 100;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user