From 28108476bd7198a9afb55bffdddab3a734fe764f Mon Sep 17 00:00:00 2001 From: wmwragg Date: Mon, 18 Jul 2016 10:31:17 +0100 Subject: [PATCH] Added an overide for the view source so that it behaves correctly with the new Modal. Also tweaked the spinner overide --- src/components/views/rooms/MessageContextMenu.js | 2 +- src/skins/vector/css/common.css | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/MessageContextMenu.js b/src/components/views/rooms/MessageContextMenu.js index 4eea46037..91c59bd07 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 ce659605d..92e4abcac 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 {