diff --git a/src/components/views/rooms/MessageContextMenu.js b/src/components/views/rooms/MessageContextMenu.js index 4eea4603..91c59bd0 100644 --- a/src/components/views/rooms/MessageContextMenu.js +++ b/src/components/views/rooms/MessageContextMenu.js @@ -47,7 +47,7 @@ module.exports = React.createClass({ var ViewSource = sdk.getComponent('structures.ViewSource'); Modal.createDialog(ViewSource, { mxEvent: this.props.mxEvent - }); + }, 'mx_Dialog_viewsource'); if (this.props.onFinished) this.props.onFinished(); }, diff --git a/src/skins/vector/css/common.css b/src/skins/vector/css/common.css index ce659605..92e4abca 100644 --- a/src/skins/vector/css/common.css +++ b/src/skins/vector/css/common.css @@ -148,10 +148,18 @@ input[type=text]:focus, textarea:focus { justify-content: center; } +/* Spinner Dialog overide */ .mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog { width: auto; border-radius: 8px; padding-left: 0px; + box-shadow: none; +} + +/* View Source Dialog overide */ +.mx_Dialog_wrapper.mx_Dialog_viewsource .mx_Dialog { + padding-left: 10px; + padding-right: 10px; } .mx_Dialog {