浏览代码

ref(chat): change initial input size to 1 line

master
Leonard Kim 6 年前
父节点
当前提交
dfe5fbb702
共有 2 个文件被更改,包括 0 次插入3 次删除
  1. 0
    2
      css/_chat.scss
  2. 0
    1
      react/features/chat/components/web/ChatInput.js

+ 0
- 2
css/_chat.scss 查看文件

133
     font-size: 15px;
133
     font-size: 15px;
134
     line-height: 30px;
134
     line-height: 30px;
135
     padding: 5px;
135
     padding: 5px;
136
-    max-height:150px;
137
-    min-height:35px;
138
     overflow-y: auto;
136
     overflow-y: auto;
139
     resize: none;
137
     resize: none;
140
     width: 100%;
138
     width: 100%;

+ 0
- 1
react/features/chat/components/web/ChatInput.js 查看文件

119
                         id = 'usermsg'
119
                         id = 'usermsg'
120
                         inputRef = { this._setTextAreaRef }
120
                         inputRef = { this._setTextAreaRef }
121
                         maxRows = { 5 }
121
                         maxRows = { 5 }
122
-                        minRows = { 2 }
123
                         onChange = { this._onMessageChange }
122
                         onChange = { this._onMessageChange }
124
                         onKeyDown = { this._onDetectSubmit }
123
                         onKeyDown = { this._onDetectSubmit }
125
                         placeholder = { this.props.t('chat.messagebox') }
124
                         placeholder = { this.props.t('chat.messagebox') }

正在加载...
取消
保存