ref(chat): change initial input size to 1 line
This commit is contained in:
parent
09f881c0f5
commit
dfe5fbb702
|
@ -133,8 +133,6 @@
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
max-height:150px;
|
|
||||||
min-height:35px;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
resize: none;
|
resize: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -119,7 +119,6 @@ class ChatInput extends Component<Props, State> {
|
||||||
id = 'usermsg'
|
id = 'usermsg'
|
||||||
inputRef = { this._setTextAreaRef }
|
inputRef = { this._setTextAreaRef }
|
||||||
maxRows = { 5 }
|
maxRows = { 5 }
|
||||||
minRows = { 2 }
|
|
||||||
onChange = { this._onMessageChange }
|
onChange = { this._onMessageChange }
|
||||||
onKeyDown = { this._onDetectSubmit }
|
onKeyDown = { this._onDetectSubmit }
|
||||||
placeholder = { this.props.t('chat.messagebox') }
|
placeholder = { this.props.t('chat.messagebox') }
|
||||||
|
|
Loading…
Reference in New Issue