sidebar: Show shortened text in overlay mode

This commit is contained in:
JC Brand 2020-01-30 21:59:51 +01:00
parent e3708bd598
commit 6b4bdb636e
4 changed files with 7 additions and 5 deletions

View File

@ -185,7 +185,7 @@
}
.fa-user-plus {
margin-right: 0.5em;
margin-right: 0.25em;
}
.occupants-heading {

View File

@ -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);

View File

@ -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(),

View File

@ -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 '';