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
6b4bdb63
Commit
6b4bdb63
authored
Jan 30, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sidebar: Show shortened text in overlay mode
parent
e3708bd5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
sass/_chatrooms.scss
sass/_chatrooms.scss
+1
-1
sass/_core.scss
sass/_core.scss
+2
-2
src/converse-muc-views.js
src/converse-muc-views.js
+1
-0
src/templates/muc_sidebar.js
src/templates/muc_sidebar.js
+3
-2
No files found.
sass/_chatrooms.scss
View file @
6b4bdb63
...
...
@@ -185,7 +185,7 @@
}
.fa-user-plus
{
margin-right
:
0
.5em
;
margin-right
:
0
.
2
5em
;
}
.occupants-heading
{
...
...
sass/_core.scss
View file @
6b4bdb63
...
...
@@ -542,8 +542,8 @@ body.converse-fullscreen {
}
.btn-circle
{
width
:
3
2
px
;
height
:
3
2
px
;
width
:
3
0
px
;
height
:
3
0
px
;
text-align
:
center
;
padding
:
0
.5em
0
;
font-size
:
var
(
--
font-size-small
);
...
...
src/converse-muc-views.js
View file @
6b4bdb63
...
...
@@ -2184,6 +2184,7 @@ converse.plugins.add('converse-muc-views', {
toHTML
()
{
return
tpl_muc_sidebar
(
Object
.
assign
(
this
.
chatroomview
.
model
.
toJSON
(),
{
_converse
,
'
features
'
:
this
.
chatroomview
.
model
.
features
,
'
occupants
'
:
this
.
model
.
models
,
'
invitesAllowed
'
:
()
=>
this
.
invitesAllowed
(),
...
...
src/templates/muc_sidebar.js
View file @
6b4bdb63
...
...
@@ -15,7 +15,8 @@ const PRETTY_CHAT_STATUS = {
const
occupant_hint
=
(
occupant
)
=>
__
(
'
Click to mention %1$s in your message.
'
,
occupant
.
get
(
'
nick
'
))
const
i18n_invite_hint
=
__
(
'
Invite someone
'
);
const
i18n_invite
=
(
o
)
=>
o
.
_converse
.
view_mode
===
'
overlayed
'
?
__
(
'
Invite
'
)
:
__
(
'
Invite someone
'
);
const
i18n_invite_hint
=
__
(
'
Invite someone to join this groupchat
'
);
const
i18n_participants
=
__
(
'
Participants
'
);
...
...
@@ -28,7 +29,7 @@ const invite_widget = (o) => {
data-target="#muc-invite-modal"
@click=
${
o
.
showInviteModal
}
>
<i class="btn btn-primary btn-circle fa fa-user-plus"></i>
${
i18n_invite
_hint
}
${
i18n_invite
(
o
)
}
</a>`
;
}
else
{
return
''
;
...
...
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