Commit 6b4bdb63 authored by JC Brand's avatar JC Brand

sidebar: Show shortened text in overlay mode

parent e3708bd5
......@@ -185,7 +185,7 @@
}
.fa-user-plus {
margin-right: 0.5em;
margin-right: 0.25em;
}
.occupants-heading {
......
......@@ -542,8 +542,8 @@ body.converse-fullscreen {
}
.btn-circle {
width: 32px;
height: 32px;
width: 30px;
height: 30px;
text-align: center;
padding: 0.5em 0;
font-size: var(--font-size-small);
......
......@@ -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(),
......
......@@ -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 '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment