Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Improve integration manager dialog style #8888

Merged
merged 6 commits into from
Jun 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 29 additions & 27 deletions res/css/views/settings/_IntegrationManager.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
5 changes: 3 additions & 2 deletions src/components/views/settings/IntegrationManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,7 +89,7 @@ export default class IntegrationManager extends React.Component<IProps, IState>
if (this.props.loading) {
return (
<div className='mx_IntegrationManager_loading'>
<h3>{ _t("Connecting to integration manager...") }</h3>
<Heading size="h3">{ _t("Connecting to integration manager...") }</Heading>
<Spinner />
</div>
);
Expand All @@ -97,7 +98,7 @@ export default class IntegrationManager extends React.Component<IProps, IState>
if (!this.props.connected || this.state.errored) {
return (
<div className='mx_IntegrationManager_error'>
<h3>{ _t("Cannot connect to integration manager") }</h3>
<Heading size="h3">{ _t("Cannot connect to integration manager") }</Heading>
<p>{ _t("The integration manager is offline or it cannot reach your homeserver.") }</p>
</div>
);
Expand Down