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

Commit

Permalink
Keep registration spinner inside the auth modal
Browse files Browse the repository at this point in the history
The spinner was taking on the full height of the modal and escaping off the
page. This keeps it contained inside the modal.

Fixes element-hq/element-web#8661
  • Loading branch information
jryans committed Feb 27, 2019
1 parent 909c6a6 commit 404c60f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions res/css/views/auth/_AuthBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ limitations under the License.
text-align: center;
width: 100%;
}

.mx_AuthBody_spinner {
margin: 1em 0;
}
4 changes: 3 additions & 1 deletion src/components/structures/auth/Registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ module.exports = React.createClass({
poll={true}
/>;
} else if (this.state.busy || !this.state.flows) {
return <Spinner />;
return <div className="mx_AuthBody_spinner">
<Spinner />
</div>;
} else {
let onEditServerDetailsClick = null;
// If custom URLs are allowed and we haven't selected the Free server type, wire
Expand Down

0 comments on commit 404c60f

Please sign in to comment.