Remove unused code for the removed features section in occupants sidebar
This commit is contained in:
parent
86c04b876b
commit
3f08201f5a
|
@ -226,9 +226,6 @@
|
|||
padding-left: 0;
|
||||
margin-right: 1em;
|
||||
}
|
||||
.chatroom-features {
|
||||
display: var(--occupants-features-display);
|
||||
}
|
||||
.suggestion-box{
|
||||
ul {
|
||||
padding: 0;
|
||||
|
@ -401,10 +398,6 @@
|
|||
#conversejs.converse-overlayed {
|
||||
.chatbox {
|
||||
&.chatroom {
|
||||
.chatroom-features {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
min-width: var(--chatroom-width) !important;
|
||||
width: var(--chatroom-width);
|
||||
.box-flyout {
|
||||
|
@ -430,11 +423,6 @@
|
|||
.occupant-list {
|
||||
border-bottom: none;
|
||||
}
|
||||
.chatroom-features {
|
||||
.feature {
|
||||
font-size: var(--font-size-tiny);
|
||||
}
|
||||
}
|
||||
ul {
|
||||
.occupant {
|
||||
.occupant-nick-badge {
|
||||
|
|
|
@ -160,7 +160,6 @@ $mobile_portrait_length: 480px !default;
|
|||
--occupants-background-color: white;
|
||||
--occupants-border-left: 0.2143rem solid var(--panel-divider-color);
|
||||
--occupants-border-bottom: 1px solid lightgrey;
|
||||
--occupants-features-display: block;
|
||||
|
||||
--embedded-emoji-picker-height: 300px;
|
||||
|
||||
|
@ -240,7 +239,6 @@ $mobile_portrait_length: 480px !default;
|
|||
--occupants-background-color: #F3F3F3;
|
||||
--occupants-border-left: 0px;
|
||||
--occupants-border-bottom: 0px;
|
||||
--occupants-features-display: none;
|
||||
|
||||
--separator-text-color: #AAA;
|
||||
--chat-separator-border-bottom: 1px solid #AAA;
|
||||
|
|
|
@ -1581,16 +1581,6 @@ converse.plugins.add('converse-muc-views', {
|
|||
u.hideElement(this.el);
|
||||
} else {
|
||||
u.showElement(this.el);
|
||||
this.setOccupantsHeight();
|
||||
}
|
||||
},
|
||||
|
||||
setOccupantsHeight () {
|
||||
// TODO: remove the features section in sidebar and then this as well
|
||||
const el = this.el.querySelector('.chatroom-features');
|
||||
if (el) {
|
||||
this.el.querySelector('.occupant-list').style.cssText =
|
||||
`height: calc(100% - ${el.offsetHeight}px - 5em);`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1747,4 +1737,3 @@ converse.plugins.add('converse-muc-views', {
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -8,4 +8,3 @@ export default (o) => html`
|
|||
<svg xmlns="http://www.w3.org/2000/svg" class="avatar ${o.classes}" width="${o.width}" height="${o.height}">
|
||||
<image width="${o.width}" height="${o.height}" preserveAspectRatio="xMidYMid meet" href="${getImgHref(o.image, o.image_type)}"/>
|
||||
</svg>`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user