Skip to content

The Unified and Autonomous Development Platform

Minor css improvement for 2FA setup page

Robin Shen5a0de68ce44b
diff --git a/server-core/src/main/java/io/onedev/server/web/component/user/twofactorauthentication/TwoFactorAuthenticationSetupPanel.html b/server-core/src/main/java/io/onedev/server/web/component/user/twofactorauthentication/TwoFactorAuthenticationSetupPanel.html
index 16b273b845..1764376e80 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/user/twofactorauthentication/TwoFactorAuthenticationSetupPanel.html
+++ b/server-core/src/main/java/io/onedev/server/web/component/user/twofactorauthentication/TwoFactorAuthenticationSetupPanel.html
@@ -10,7 +10,7 @@
<div wicket:id="enforceNotice" class="alert alert-light-warning">Two-factor authentication is enforced
for your account to enhance security. Please follow below procedure to set it up</div>
<div class="text-secondary font-weight-boldest">
- 1. Scan below QR code with your TOTP authenticators
+ Scan below QR code with your TOTP authenticators
</div>
<div>These authenticators normally run
on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.</div>
@@ -20,7 +20,7 @@
</div>
<div class="text-secondary font-weight-boldest">
- 2. Then enter the passcode shown in the TOTP authenticator to verify
+ Then enter the passcode shown in the TOTP authenticator to verify
</div>
<input wicket:id="passcode" placeholder="6-digits passcode" class="form-control mt-2">
<div wicket:id="feedback" class="mb-n3 mt-3"></div>
@@ -45,7 +45,7 @@
them secret. These codes can be used to provide one-time access to your account in case you
can not access the authentication application. They will <b>NOT</b> be displayed again
</div>
- <div class="mx-5">
+ <div>
<div wicket:id="recoveryCodes" class="d-flex justify-content-between text-monospace font-size-lg font-weight-bold">
<div wicket:id="left"></div>
<div wicket:id="right"></div>
diff --git a/server-core/src/main/java/io/onedev/server/web/page/simple/simple.css b/server-core/src/main/java/io/onedev/server/web/page/simple/simple.css
index ccb575b617..04c3fa8cb7 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/simple/simple.css
+++ b/server-core/src/main/java/io/onedev/server/web/page/simple/simple.css
@@ -98,9 +98,6 @@
font-size: 1.5rem !important;
}
-.LoginPage .setup-2fa {
- text-align: left;
-}
.LoginPage .setup-2fa .modal-header {
display: none;
}