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
120f02d7
Commit
120f02d7
authored
May 29, 2020
by
Ariel Fuggini
Committed by
JC Brand
Jun 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minimize chat when clicking on title bar
parent
d77f8d9f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
sass/_chatbox.scss
sass/_chatbox.scss
+4
-0
src/components/dropdown.js
src/components/dropdown.js
+2
-1
src/converse-muc-views.js
src/converse-muc-views.js
+3
-1
No files found.
sass/_chatbox.scss
View file @
120f02d7
...
@@ -483,8 +483,12 @@
...
@@ -483,8 +483,12 @@
min-height
:
calc
(
var
(
--
overlayed-chat-height
)
/
2
);
min-height
:
calc
(
var
(
--
overlayed-chat-height
)
/
2
);
}
}
.chat-head
{
.chat-head
{
cursor
:
pointer
;
min-height
:
var
(
--
overlayed-chat-head-height
);
min-height
:
var
(
--
overlayed-chat-head-height
);
}
}
.minimized-chats-flyout
.chat-head
{
cursor
:
default
;
}
.chat-textarea
{
.chat-textarea
{
max-height
:
var
(
--
overlayed-max-chat-textarea-height
);
max-height
:
var
(
--
overlayed-max-chat-textarea-height
);
}
}
...
...
src/components/dropdown.js
View file @
120f02d7
...
@@ -29,7 +29,8 @@ export class BaseDropdown extends CustomElement {
...
@@ -29,7 +29,8 @@ export class BaseDropdown extends CustomElement {
this
.
button
.
setAttribute
(
'
aria-expanded
'
,
true
);
this
.
button
.
setAttribute
(
'
aria-expanded
'
,
true
);
}
}
toggleMenu
()
{
toggleMenu
(
event
)
{
event
.
stopPropagation
();
if
(
u
.
hasClass
(
'
show
'
,
this
.
menu
))
{
if
(
u
.
hasClass
(
'
show
'
,
this
.
menu
))
{
this
.
hideMenu
();
this
.
hideMenu
();
}
else
{
}
else
{
...
...
src/converse-muc-views.js
View file @
120f02d7
...
@@ -456,7 +456,8 @@ converse.plugins.add('converse-muc-views', {
...
@@ -456,7 +456,8 @@ converse.plugins.add('converse-muc-views', {
'
keyup .chat-textarea
'
:
'
onKeyUp
'
,
'
keyup .chat-textarea
'
:
'
onKeyUp
'
,
'
mousedown .dragresize-occupants-left
'
:
'
onStartResizeOccupants
'
,
'
mousedown .dragresize-occupants-left
'
:
'
onStartResizeOccupants
'
,
'
paste .chat-textarea
'
:
'
onPaste
'
,
'
paste .chat-textarea
'
:
'
onPaste
'
,
'
submit .muc-nickname-form
'
:
'
submitNickname
'
'
submit .muc-nickname-form
'
:
'
submitNickname
'
,
'
click .converse-overlayed .chat-head-chatroom
'
:
'
minimize
'
},
},
async
initialize
()
{
async
initialize
()
{
...
@@ -990,6 +991,7 @@ converse.plugins.add('converse-muc-views', {
...
@@ -990,6 +991,7 @@ converse.plugins.add('converse-muc-views', {
'
i18n_text
'
:
__
(
'
Leave
'
),
'
i18n_text
'
:
__
(
'
Leave
'
),
'
i18n_title
'
:
__
(
'
Leave and close this groupchat
'
),
'
i18n_title
'
:
__
(
'
Leave and close this groupchat
'
),
'
handler
'
:
async
ev
=>
{
'
handler
'
:
async
ev
=>
{
ev
.
stopPropagation
();
const
messages
=
[
__
(
'
Are you sure you want to leave this groupchat?
'
)];
const
messages
=
[
__
(
'
Are you sure you want to leave this groupchat?
'
)];
const
result
=
await
api
.
confirm
(
__
(
'
Confirm
'
),
messages
);
const
result
=
await
api
.
confirm
(
__
(
'
Confirm
'
),
messages
);
result
&&
this
.
close
(
ev
);
result
&&
this
.
close
(
ev
);
...
...
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