diff --git a/src/app/chat/ChatMode/MessageInput/index.tsx b/src/app/chat/ChatMode/MessageInput/index.tsx index 0a3118dd..183e72c9 100644 --- a/src/app/chat/ChatMode/MessageInput/index.tsx +++ b/src/app/chat/ChatMode/MessageInput/index.tsx @@ -1,6 +1,6 @@ import { SendOutlined } from '@ant-design/icons'; import { Icon } from '@lobehub/ui'; -import { Button } from 'antd'; +import { Button, Typography } from 'antd'; import { useTheme } from 'antd-style'; import { ChevronUp, CornerDownLeft, LucideCommand } from 'lucide-react'; import React, { memo } from 'react'; @@ -77,7 +77,9 @@ const InputArea = memo((props: InputAreaProps) => { -
{t('input.alert')}
+ + {t('input.alert')} + {ShortCuts}
diff --git a/src/app/chat/ChatMode/MessageInput/style.ts b/src/app/chat/ChatMode/MessageInput/style.ts index 5e9b5f81..5d43975f 100644 --- a/src/app/chat/ChatMode/MessageInput/style.ts +++ b/src/app/chat/ChatMode/MessageInput/style.ts @@ -2,6 +2,7 @@ import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ css, token }) => ({ alert: css` + width: 100%; color: ${token.colorTextTertiary}; `, })); diff --git a/src/app/chat/ChatMode/style.ts b/src/app/chat/ChatMode/style.ts index a26a9a2d..402b64fb 100644 --- a/src/app/chat/ChatMode/style.ts +++ b/src/app/chat/ChatMode/style.ts @@ -9,7 +9,7 @@ export const useStyles = createStyles(({ css, token, responsive }) => ({ `, input: css` width: ${CHAT_INPUT_WIDTH}; - min-width: 480px; + min-width: 360px; max-width: 100vw; ${responsive.mobile} { diff --git a/src/features/ChatItem/index.tsx b/src/features/ChatItem/index.tsx index b875eb1a..4a14f2c6 100644 --- a/src/features/ChatItem/index.tsx +++ b/src/features/ChatItem/index.tsx @@ -18,7 +18,7 @@ import { renderMessages } from './Messages'; const useStyles = createStyles(({ css, prefixCls, responsive }) => ({ message: css` width: 100%; - min-width: 480px; + min-width: 360px; max-width: ${CHAT_INPUT_WIDTH}; margin: 0 auto; // prevent the textarea too long