Improve SetIntegrationManager (#8878)
parent
ea5616a05f
commit
7852e168a0
|
@ -15,6 +15,8 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_ToggleSwitch {
|
||||
--ToggleSwitch-min-width: $font-44px;
|
||||
|
||||
transition: background-color 0.20s ease-out 0.1s;
|
||||
|
||||
width: $font-44px;
|
||||
|
|
|
@ -15,22 +15,26 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
.mx_SetIntegrationManager {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.mx_SettingsFlag {
|
||||
align-items: center;
|
||||
margin-top: var(--SettingsTab_heading_nth_child-margin-top);
|
||||
|
||||
.mx_SetIntegrationManager > .mx_SettingsTab_heading {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.mx_SetIntegrationManager_heading_manager {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
column-gap: $spacing-4;
|
||||
|
||||
.mx_SetIntegrationManager > .mx_SettingsTab_heading > .mx_SettingsTab_subheading {
|
||||
display: inline-block;
|
||||
padding-left: 5px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
.mx_SettingsTab_heading,
|
||||
.mx_SettingsTab_subheading {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_SetIntegrationManager .mx_ToggleSwitch {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
top: 9px;
|
||||
.mx_ToggleSwitch {
|
||||
align-self: flex-start;
|
||||
min-width: var(--ToggleSwitch-min-width); // avoid compression
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ limitations under the License.
|
|||
|
||||
.mx_SettingsTab {
|
||||
--SettingsTab_section-margin-bottom-preferences-labs: 30px;
|
||||
--SettingsTab_heading_nth_child-margin-top: 30px; // TODO: Use a spacing variable
|
||||
--SettingsTab_fullWidthField-margin-inline-end: 100px;
|
||||
--SettingsTab_tooltip-max-width: 120px; // So it fits in the space provided by the page
|
||||
|
||||
|
@ -38,7 +39,7 @@ limitations under the License.
|
|||
margin-bottom: 10px; // TODO: Use a spacing variable
|
||||
|
||||
&:nth-child(n + 2) {
|
||||
margin-top: 30px; // TODO: Use a spacing variable
|
||||
margin-top: var(--SettingsTab_heading_nth_child-margin-top);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -407,7 +407,7 @@ export default class SetIdServer extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
return (
|
||||
<form className="mx_SettingsTab_section mx_SetIdServer" onSubmit={this.checkIdServer}>
|
||||
<form className="mx_SetIdServer" onSubmit={this.checkIdServer}>
|
||||
<span className="mx_SettingsTab_subheading">
|
||||
{ sectionTitle }
|
||||
</span>
|
||||
|
|
|
@ -74,24 +74,26 @@ export default class SetIntegrationManager extends React.Component<IProps, IStat
|
|||
|
||||
return (
|
||||
<div className='mx_SetIntegrationManager'>
|
||||
<div className="mx_SettingsTab_heading">
|
||||
<span>{ _t("Manage integrations") }</span>
|
||||
<span className="mx_SettingsTab_subheading">{ managerName }</span>
|
||||
<div className="mx_SettingsFlag">
|
||||
<div className="mx_SetIntegrationManager_heading_manager">
|
||||
<span className="mx_SettingsTab_heading">{ _t("Manage integrations") }</span>
|
||||
<span className="mx_SettingsTab_subheading">{ managerName }</span>
|
||||
</div>
|
||||
<ToggleSwitch
|
||||
checked={this.state.provisioningEnabled}
|
||||
disabled={false}
|
||||
onChange={this.onProvisioningToggled}
|
||||
/>
|
||||
</div>
|
||||
<span className="mx_SettingsTab_subsectionText">
|
||||
<div className="mx_SettingsTab_subsectionText">
|
||||
{ bodyText }
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
<div className="mx_SettingsTab_subsectionText">
|
||||
{ _t(
|
||||
"Integration managers receive configuration data, and can modify widgets, " +
|
||||
"send room invites, and set power levels on your behalf.",
|
||||
) }
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue