From e49aac7b3facf9fbb3fe2436d9989513c81dc611 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 25 Jun 2022 11:54:07 +0000 Subject: [PATCH] Improve integration manager dialog style (#8888) --- .../views/settings/_IntegrationManager.scss | 56 ++++++++++--------- .../views/settings/IntegrationManager.tsx | 5 +- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/res/css/views/settings/_IntegrationManager.scss b/res/css/views/settings/_IntegrationManager.scss index 043e7201caf..f91d3fdd6c9 100644 --- a/res/css/views/settings/_IntegrationManager.scss +++ b/res/css/views/settings/_IntegrationManager.scss @@ -14,31 +14,33 @@ See the License for the specific language governing permissions and limitations under the License. */ -.mx_IntegrationManager .mx_Dialog { - width: 60%; - height: 70%; - overflow: hidden; - padding: 0px; - max-width: initial; - max-height: initial; -} - -.mx_IntegrationManager iframe { - background-color: #fff; - border: 0px; - width: 100%; - height: 100%; -} - -.mx_IntegrationManager_loading h3 { - text-align: center; -} - -.mx_IntegrationManager_error { - text-align: center; - padding-top: 20px; -} - -.mx_IntegrationManager_error h3 { - color: $alert; +.mx_IntegrationManager { + .mx_Dialog { + box-sizing: border-box; + width: 60%; + height: 70%; + overflow: hidden; + max-width: initial; + max-height: initial; + } + + iframe { + background-color: #fff; + border: 0; + width: 100%; + height: 100%; + } + + h3 { + margin-block: $spacing-20; + } + + .mx_IntegrationManager_loading, + .mx_IntegrationManager_error { + text-align: center; + } + + .mx_IntegrationManager_error h3 { + color: $alert; + } } diff --git a/src/components/views/settings/IntegrationManager.tsx b/src/components/views/settings/IntegrationManager.tsx index d9a45860dca..fa889edbc0c 100644 --- a/src/components/views/settings/IntegrationManager.tsx +++ b/src/components/views/settings/IntegrationManager.tsx @@ -22,6 +22,7 @@ import { ActionPayload } from '../../../dispatcher/payloads'; import Spinner from "../elements/Spinner"; import { getKeyBindingsManager } from "../../../KeyBindingsManager"; import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts"; +import Heading from '../typography/Heading'; interface IProps { // false to display an error saying that we couldn't connect to the integration manager @@ -88,7 +89,7 @@ export default class IntegrationManager extends React.Component if (this.props.loading) { return (
-

{ _t("Connecting to integration manager...") }

+ { _t("Connecting to integration manager...") }
); @@ -97,7 +98,7 @@ export default class IntegrationManager extends React.Component if (!this.props.connected || this.state.errored) { return (
-

{ _t("Cannot connect to integration manager") }

+ { _t("Cannot connect to integration manager") }

{ _t("The integration manager is offline or it cannot reach your homeserver.") }

);