From 2d25414b57d296f8cba87eba4da2b066d27c19d3 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 19 Jul 2015 03:30:41 +0100 Subject: [PATCH] fix up registration page too --- skins/base/css/templates/Login.css | 2 +- skins/base/views/templates/Login.js | 6 ++---- skins/base/views/templates/Register.js | 25 ++++++++++++------------- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/skins/base/css/templates/Login.css b/skins/base/css/templates/Login.css index b8cab4a4..fe5646f9 100644 --- a/skins/base/css/templates/Login.css +++ b/skins/base/css/templates/Login.css @@ -70,7 +70,7 @@ limitations under the License. opacity: 0.8; } -.mx_Login_advanced_checkbox { +.mx_Login_checkbox { margin-right: 10px; } diff --git a/skins/base/views/templates/Login.js b/skins/base/views/templates/Login.js index ee7273b8..ee6bd4ed 100644 --- a/skins/base/views/templates/Login.js +++ b/skins/base/views/templates/Login.js @@ -106,12 +106,10 @@ module.exports = React.createClass({ switch (step) { case 'choose_hs': var serverConfigStyle = {}; - if (!this.state.serverConfigVisible) { - serverConfigStyle.display = 'none'; - } + serverConfigStyle.display = this.state.serverConfigVisible ? 'block' : 'none'; return (
- +
- Email:
- Username: {this.getUserIdSuffix()}
- Password:
- Confirm Password:
+
+ {this.getUserIdSuffix()}
+
+
- - Use custom server options (advanced) + +

- +
); @@ -144,10 +143,10 @@ module.exports = React.createClass({ } else { return (
-

Create an account

+

Create an account

{this.componentForStep(this.state.step)} -
{this.state.errorText}
- I already have an account +
{this.state.errorText}
+ I already have an account
); }