Commit d86a657a authored by JC Brand's avatar JC Brand

converse-controlbox: No need anymore to override `insertIntoDOM`

We now use CSS to make sure that the controlbox and toggle is always on the far right.
parent ff381b5f
...@@ -356,8 +356,12 @@ ...@@ -356,8 +356,12 @@
} }
} }
} }
}
#conversejs.converse-overlayed {
.toggle-controlbox { .toggle-controlbox {
order: -1;
text-align: center; text-align: center;
background-color: var(--link-color); background-color: var(--link-color);
border-top-left-radius: var(--button-border-radius); border-top-left-radius: var(--button-border-radius);
...@@ -371,10 +375,7 @@ ...@@ -371,10 +375,7 @@
color: var(--inverse-link-color); color: var(--inverse-link-color);
} }
} }
}
#conversejs.converse-overlayed {
#controlbox { #controlbox {
order: -1; order: -1;
min-width: var(--controlbox-width) !important; min-width: var(--controlbox-width) !important;
...@@ -561,7 +562,7 @@ ...@@ -561,7 +562,7 @@
font-size: 14px; font-size: 14px;
} }
.chatbox { .chatbox {
.box-flyout { .box-flyout {
margin-left: 15px; // Counteracts Bootstrap margins, but margin-left: 15px; // Counteracts Bootstrap margins, but
// not clear why needed... // not clear why needed...
......
...@@ -134,18 +134,6 @@ converse.plugins.add('converse-controlbox', { ...@@ -134,18 +134,6 @@ converse.plugins.add('converse-controlbox', {
} else { } else {
this.__super__.initialize.apply(this, arguments); this.__super__.initialize.apply(this, arguments);
} }
},
},
ChatBoxView: {
insertIntoDOM () {
const view = this.__super__._converse.chatboxviews.get("controlbox");
if (view) {
view.el.insertAdjacentElement('afterend', this.el)
} else {
this.__super__.insertIntoDOM.apply(this, arguments);
}
return this;
} }
} }
}, },
......
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