Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
71be72b5
Commit
71be72b5
authored
Apr 24, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically grow/shrink input as text is entered/removed
parent
59a72efe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
CHANGES.md
CHANGES.md
+3
-2
sass/converse/_variables.scss
sass/converse/_variables.scss
+1
-0
sass/inverse/_variables.scss
sass/inverse/_variables.scss
+1
-0
src/converse-chatview.js
src/converse-chatview.js
+7
-1
src/converse-muc-views.js
src/converse-muc-views.js
+2
-1
No files found.
CHANGES.md
View file @
71be72b5
...
...
@@ -4,9 +4,10 @@
## New Features
-
#161 XEP-0363: HTTP File Upload
-
Support for rendering URLs sent according to XEP-0066 Out of Band Data.
-
mp4 and mp3 files when sent as XEP-0066 Out of Band Data, will now be playable directly in chat
-
MP4 and MP3 files when sent as XEP-0066 Out of Band Data, are now playable directly in chat
-
Automatically grow/shrink input as text is entered/removed
-
#161 XEP-0363: HTTP File Upload
## 4.0.0 (Unreleased)
...
...
sass/converse/_variables.scss
View file @
71be72b5
...
...
@@ -49,6 +49,7 @@ $border-color: #CCC !default;
$icon-color
:
$blue
!
default
;
$save-button-color
:
$green
!
default
;
$chat-textarea-height
:
60px
!
default
;
$max-chat-textarea-height
:
200px
!
default
;
$send-button-height
:
27px
!
default
;
$send-button-margin
:
3px
!
default
;
...
...
sass/inverse/_variables.scss
View file @
71be72b5
...
...
@@ -65,6 +65,7 @@ $chat-head-inverse-text-color: white !default;
$chat-head-height
:
62px
!
default
;
$chat-textarea-height
:
60px
!
default
;
$max-chat-textarea-height
:
400px
!
default
;
$input-focus-color
:
#1A9707
!
default
;
$highlight-color
:
#DCF9F6
!
default
;
...
...
src/converse-chatview.js
View file @
71be72b5
...
...
@@ -251,7 +251,8 @@
'
click .toggle-smiley
'
:
'
toggleEmojiMenu
'
,
'
click .toggle-spoiler
'
:
'
toggleSpoilerMessage
'
,
'
click .upload-file
'
:
'
toggleFileUpload
'
,
'
keypress .chat-textarea
'
:
'
keyPressed
'
'
keypress .chat-textarea
'
:
'
keyPressed
'
,
'
input .chat-textarea
'
:
'
inputChanged
'
},
initialize
()
{
...
...
@@ -827,6 +828,11 @@
}
},
inputChanged
(
ev
)
{
ev
.
target
.
style
.
height
=
'
auto
'
;
// Fixes weirdness
ev
.
target
.
style
.
height
=
(
ev
.
target
.
scrollHeight
)
+
'
px
'
;
},
clearMessages
(
ev
)
{
if
(
ev
&&
ev
.
preventDefault
)
{
ev
.
preventDefault
();
}
const
result
=
confirm
(
__
(
"
Are you sure you want to clear the messages from this conversation?
"
));
...
...
src/converse-muc-views.js
View file @
71be72b5
...
...
@@ -502,7 +502,8 @@
'
click .toggle-smiley ul.emoji-picker li
'
:
'
insertEmoji
'
,
'
click .toggle-smiley
'
:
'
toggleEmojiMenu
'
,
'
click .upload-file
'
:
'
toggleFileUpload
'
,
'
keypress .chat-textarea
'
:
'
keyPressed
'
'
keypress .chat-textarea
'
:
'
keyPressed
'
,
'
input .chat-textarea
'
:
'
inputChanged
'
},
initialize
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment