fix: 修复输入超长文本会导致内容溢出的bug

pull/81/head
moonrailgun 3 years ago
parent ba6baca44e
commit 6412fcca90

@ -6,7 +6,6 @@
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"prepare": "tsc", "prepare": "tsc",
"postinstall": "tsc",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"files": ["lib"], "files": ["lib"],

@ -1,5 +1,5 @@
.chatbox-mention-input { .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 { &__control {
@apply relative; @apply relative;

@ -27,6 +27,7 @@ export const ChatInputBoxInput: React.FC<ChatInputBoxInputProps> = React.memo(
className="chatbox-mention-input" className="chatbox-mention-input"
placeholder={t('输入一些什么')} placeholder={t('输入一些什么')}
singleLine={true} singleLine={true}
maxLength={1000}
value={props.value} value={props.value}
onChange={(e, newValue, _, mentions) => onChange={(e, newValue, _, mentions) =>
props.onChange( props.onChange(

Loading…
Cancel
Save