Skip to content

Commit f3f60bc

Browse files
committed
fix styles
1 parent f2c337c commit f3f60bc

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

routers/web/auth/linkaccount.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func LinkAccount(ctx *context.Context) {
5151
ctx.Data["SignUpLink"] = setting.AppSubURL + "/user/link_account_signup"
5252

5353
gothUser, ok := ctx.Session.Get("linkAccountGothUser").(goth.User)
54+
// If you'd like to quickly debug the "link account" page, just uncomment the blow line
55+
// don't worry, the below line won't pass the lint
56+
// gothUser, ok = goth.User{Email: "invalid-email", Name: "."}, true // intentionally use invalid data to avoid pass the registration check
5457
if !ok {
5558
// no account in session, so just redirect to the login page, then the user could restart the process
5659
ctx.Redirect(setting.AppSubURL + "/user/login")

templates/user/auth/link_account.tmpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@
1616
</div>
1717
</overflow-menu>
1818
<div class="ui middle very relaxed page grid">
19-
<div class="column">
19+
<div class="column tw-my-5">
20+
{{/* these styles are quite tricky but it needs to be the same as the signin page */}}
2021
<div class="ui tab {{if not .user_exists}}active{{end}}" data-tab="auth-link-signup-tab">
22+
<div class="tw-flex tw-flex-col tw-gap-4 tw-max-w-2xl tw-m-auto">
2123
{{if .AutoRegistrationFailedPrompt}}<div class="ui message">{{.AutoRegistrationFailedPrompt}}</div>{{end}}
2224
{{template "user/auth/signup_inner" .}}
25+
</div>
2326
</div>
2427
<div class="ui tab {{if .user_exists}}active{{end}}" data-tab="auth-link-signin-tab">
28+
<div class="tw-flex tw-flex-col tw-gap-4 tw-max-w-2xl tw-m-auto">
2529
{{template "user/auth/signin_inner" .}}
30+
</div>
2631
</div>
2732
</div>
2833
</div>

templates/user/auth/signin.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{{template "base/head" .}}
22
<div role="main" aria-label="{{.Title}}" class="page-content user signin{{if .LinkAccountMode}} icon{{end}}">
33
<div class="ui middle very relaxed page grid">
4+
{{/* these styles are quite tricky and should also apply to the signup and link_account pages */}}
45
<div class="column tw-flex tw-flex-col tw-gap-4 tw-max-w-2xl tw-m-auto">
56
{{template "user/auth/signin_inner" .}}
67
</div>

0 commit comments

Comments
 (0)