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

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

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

@ -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;

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

Loading…
Cancel
Save