Fix HostingSignupDialog layouting inside dialog

This commit is contained in:
Jason Robinson 2020-11-13 16:29:35 +02:00
parent 1e699b7ef3
commit b3b3f5ebeb
3 changed files with 11 additions and 16 deletions

View file

@ -72,7 +72,7 @@
@import "./views/dialogs/_EditCommunityPrototypeDialog.scss";
@import "./views/dialogs/_FeedbackDialog.scss";
@import "./views/dialogs/_GroupAddressPicker.scss";
@import "./views/dialogs/_HostingProviderDialog.scss";
@import "./views/dialogs/_HostingSignupDialog.scss";
@import "./views/dialogs/_IncomingSasDialog.scss";
@import "./views/dialogs/_InviteDialog.scss";
@import "./views/dialogs/_KeyboardShortcutsDialog.scss";

View file

@ -14,22 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_HostingProviderDialog .mx_Dialog {
width: 60%;
height: 70%;
overflow: hidden;
padding: 0;
max-width: initial;
max-height: initial;
position: relative;
.mx_HostingSignupDialog .mx_Dialog {
height: 50%;
}
.mx_HostingProviderDialog_container {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
.mx_HostingSignupBaseDialog {
height: 100%;
}
.mx_HostingSignupDialog_container {
height: 100%;
iframe {
width: 100%;
@ -39,6 +33,6 @@ limitations under the License.
}
}
.mx_HostingProviderTrigger {
.mx_HostingSignupTrigger {
cursor: pointer;
}

View file

@ -122,6 +122,7 @@ export default class HostingSignupDialog extends React.PureComponent<IProps, ISt
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
return (
<BaseDialog
className="mx_HostingSignupBaseDialog"
onFinished={this.onFinished}
title="Set up your own personal Element host"
hasCancel={true}