Skip to content

Commit e2fc2b1

Browse files
authored
Revert "improve lipstick and support scalar logout"
1 parent 1d97272 commit e2fc2b1

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

src/components/views/settings/IntegrationsManager.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ limitations under the License.
1919
var React = require('react');
2020
var sdk = require('matrix-react-sdk');
2121
var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg');
22-
var dis = require('matrix-react-sdk/lib/dispatcher');
2322

2423
module.exports = React.createClass({
2524
displayName: 'IntegrationsManager',
@@ -32,13 +31,11 @@ module.exports = React.createClass({
3231
// XXX: keyboard shortcuts for managing dialogs should be done by the modal
3332
// dialog base class somehow, surely...
3433
componentDidMount: function() {
35-
this.dispatcherRef = dis.register(this.onAction);
3634
document.addEventListener("keydown", this.onKeyDown);
3735
},
3836

3937
componentWillUnmount: function() {
4038
document.removeEventListener("keydown", this.onKeyDown);
41-
dis.unregister(this.dispatcherRef);
4239
},
4340

4441
onKeyDown: function(ev) {
@@ -49,15 +46,11 @@ module.exports = React.createClass({
4946
}
5047
},
5148

52-
onAction: function(payload) {
53-
if (payload.action === 'close_scalar') {
54-
this.props.onFinished();
55-
}
56-
},
57-
5849
render: function() {
5950
return (
60-
<iframe src={ this.props.src }></iframe>
51+
<div className="mx_IntegrationsManager">
52+
<iframe src={ this.props.src }></iframe>
53+
</div>
6154
);
6255
}
6356
});

src/skins/vector/css/matrix-react-sdk/views/settings/IntegrationsManager.css

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
.mx_IntegrationsManager .mx_Dialog {
18-
width: 60%;
19-
height: 70%;
20-
overflow: hidden;
21-
padding: 0px;
22-
max-width: initial;
23-
max-height: initial;
17+
.mx_IntegrationsManager {
18+
display: -webkit-flex;
19+
display: flex;
20+
width: 100%;
21+
height: 100%;
22+
-webkit-align-items: center;
23+
align-items: center;
24+
justify-content: center;
25+
-webkit-justify-content: center;
2426
}
2527

2628
.mx_IntegrationsManager iframe {
2729
background-color: #fff;
2830
border: 0px;
29-
width: 100%;
30-
height: 100%;
31+
width: 720px;
32+
height: 512px;
3133
}

0 commit comments

Comments
 (0)