diff --git a/packages/meta-form/package.json b/packages/meta-form/package.json index 512913a2..c393d5b8 100644 --- a/packages/meta-form/package.json +++ b/packages/meta-form/package.json @@ -6,7 +6,6 @@ "scripts": { "build": "tsc", "prepare": "tsc", - "postinstall": "tsc", "test": "echo \"Error: no test specified\" && exit 1" }, "files": ["lib"], diff --git a/web/src/components/ChatBox/ChatInputBox/input.less b/web/src/components/ChatBox/ChatInputBox/input.less index 0b842fe0..8e684070 100644 --- a/web/src/components/ChatBox/ChatInputBox/input.less +++ b/web/src/components/ChatBox/ChatInputBox/input.less @@ -1,5 +1,5 @@ .chatbox-mention-input { - @apply shadow-none border-0 px-4 py-2 flex-1; + @apply shadow-none border-0 px-4 py-2 flex-1 overflow-x-auto; &__control { @apply relative; diff --git a/web/src/components/ChatBox/ChatInputBox/input.tsx b/web/src/components/ChatBox/ChatInputBox/input.tsx index bb44ecae..e06c467f 100644 --- a/web/src/components/ChatBox/ChatInputBox/input.tsx +++ b/web/src/components/ChatBox/ChatInputBox/input.tsx @@ -27,6 +27,7 @@ export const ChatInputBoxInput: React.FC = React.memo( className="chatbox-mention-input" placeholder={t('输入一些什么')} singleLine={true} + maxLength={1000} value={props.value} onChange={(e, newValue, _, mentions) => props.onChange(