sidebar: Show shortened text in overlay mode
This commit is contained in:
parent
e3708bd598
commit
6b4bdb636e
@ -185,7 +185,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fa-user-plus {
|
.fa-user-plus {
|
||||||
margin-right: 0.5em;
|
margin-right: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.occupants-heading {
|
.occupants-heading {
|
||||||
|
@ -542,8 +542,8 @@ body.converse-fullscreen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-circle {
|
.btn-circle {
|
||||||
width: 32px;
|
width: 30px;
|
||||||
height: 32px;
|
height: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
|
@ -2184,6 +2184,7 @@ converse.plugins.add('converse-muc-views', {
|
|||||||
toHTML () {
|
toHTML () {
|
||||||
return tpl_muc_sidebar(
|
return tpl_muc_sidebar(
|
||||||
Object.assign(this.chatroomview.model.toJSON(), {
|
Object.assign(this.chatroomview.model.toJSON(), {
|
||||||
|
_converse,
|
||||||
'features': this.chatroomview.model.features,
|
'features': this.chatroomview.model.features,
|
||||||
'occupants': this.model.models,
|
'occupants': this.model.models,
|
||||||
'invitesAllowed': () => this.invitesAllowed(),
|
'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 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');
|
const i18n_participants = __('Participants');
|
||||||
|
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ const invite_widget = (o) => {
|
|||||||
data-target="#muc-invite-modal"
|
data-target="#muc-invite-modal"
|
||||||
@click=${o.showInviteModal}>
|
@click=${o.showInviteModal}>
|
||||||
<i class="btn btn-primary btn-circle fa fa-user-plus"></i>
|
<i class="btn btn-primary btn-circle fa fa-user-plus"></i>
|
||||||
${i18n_invite_hint}
|
${i18n_invite(o)}
|
||||||
</a>`;
|
</a>`;
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
Loading…
Reference in New Issue
Block a user