浏览代码

Disable custom sizing of the sidebar for now

Until it can be properly implemented again.
JC Brand 11 月之前
父节点
当前提交
e54f8770f9
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 2
      src/plugins/muc-views/templates/muc-chatarea.js
  2. 1 1
      src/plugins/register/tests/register.js

+ 0 - 2
src/plugins/muc-views/templates/muc-chatarea.js

@@ -11,7 +11,6 @@ const { CHATROOMS_TYPE } = constants;
  * @param {import('../chatarea').default} el
  * @param {import('../chatarea').default} el
  */
  */
 export default (el) => {
 export default (el) => {
-    const sidebar_width = el.model.get('occupants_width');
     const show_send_button = api.settings.get('show_send_button');
     const show_send_button = api.settings.get('show_send_button');
     const view_mode = api.settings.get('view_mode');
     const view_mode = api.settings.get('view_mode');
 
 
@@ -46,7 +45,6 @@ export default (el) => {
         ${el.model ? html`
         ${el.model ? html`
             <converse-muc-sidebar
             <converse-muc-sidebar
                 class="occupants ${el.shouldShowSidebar() ? sidebar_classes : 'col-xs-0 hidden' }"
                 class="occupants ${el.shouldShowSidebar() ? sidebar_classes : 'col-xs-0 hidden' }"
-                style="${sidebar_width ? `flex: 0 0 ${sidebar_width}px` : ''}"
                 jid=${el.jid}
                 jid=${el.jid}
                 @mousedown=${(ev) => el.onMousedown(ev)}></converse-muc-sidebar>` : '' }`
                 @mousedown=${(ev) => el.onMousedown(ev)}></converse-muc-sidebar>` : '' }`
 };
 };

+ 1 - 1
src/plugins/register/tests/register.js

@@ -3,7 +3,7 @@
 const { stx, Strophe, $iq, sizzle, u } = converse.env;
 const { stx, Strophe, $iq, sizzle, u } = converse.env;
 
 
 
 
-fdescribe("The Registration Panel", function () {
+describe("The Registration Panel", function () {
 
 
     afterEach(() => {
     afterEach(() => {
         // Remove the hash
         // Remove the hash