适配登入登出弹窗

This commit is contained in:
anian
2026-03-17 01:37:52 +08:00
parent ac569b2a57
commit 9cd01da074
3 changed files with 15 additions and 4 deletions
+3 -3
View File
@@ -164,7 +164,7 @@ export class BaseForm extends LitElement {
${this.currentUser?.spec.displayName || this.currentUser?.metadata.name}
</span>
<button
@click=${this.handleLogout}
onclick="open_logout_box()"
type="button"
class="form-logout text-xs text-text-3 hover:text-text-1 px-3 transition-all py-2 rounded-base border border-muted-3 opacity-100 hover:border-muted-4 hover:opacity-70 border-solid"
tabindex="-1"
@@ -224,7 +224,7 @@ export class BaseForm extends LitElement {
placeholder=${msg('Website')}
class="input"
/>
<a tabindex="-1" href=${this.loginUrl} rel="nofollow" class="form-login-link text-text-3 hover:text-text-1 text-xs transition-all select-none">${msg('(Or login)')}</a>
<a tabindex="-1" href="javascript:void(0)" onclick="open_login_box()" rel="nofollow" class="form-login-link text-text-3 hover:text-text-1 text-xs transition-all select-none">${msg('(Or login)')}</a>
</div>
`
)}
@@ -235,7 +235,7 @@ export class BaseForm extends LitElement {
!this.currentUser && !this.allowAnonymousComments,
() => html`
<button
@click=${this.handleOpenLoginPage}
onclick="open_login_box()"
class="form-login text-xs text-text-3 hover:text-text-1 px-3 transition-all py-2 rounded-base border border-muted-3 opacity-100 hover:border-muted-4 hover:opacity-70 border-solid"
type="button"
tabindex="-1"