Skip to content

Commit 2810847

Browse files
committed
Added an overide for the view source so that it behaves correctly with the new Modal. Also tweaked the spinner overide
1 parent 3cfcc13 commit 2810847

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/components/views/rooms/MessageContextMenu.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = React.createClass({
4747
var ViewSource = sdk.getComponent('structures.ViewSource');
4848
Modal.createDialog(ViewSource, {
4949
mxEvent: this.props.mxEvent
50-
});
50+
}, 'mx_Dialog_viewsource');
5151
if (this.props.onFinished) this.props.onFinished();
5252
},
5353

‎src/skins/vector/css/common.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,18 @@ input[type=text]:focus, textarea:focus {
148148
justify-content: center;
149149
}
150150

151+
/* Spinner Dialog overide */
151152
.mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog {
152153
width: auto;
153154
border-radius: 8px;
154155
padding-left: 0px;
156+
box-shadow: none;
157+
}
158+
159+
/* View Source Dialog overide */
160+
.mx_Dialog_wrapper.mx_Dialog_viewsource .mx_Dialog {
161+
padding-left: 10px;
162+
padding-right: 10px;
155163
}
156164

157165
.mx_Dialog {

0 commit comments

Comments
 (0)