fix: captcha full-width row, hide top-auth on anonymous submit page

This commit is contained in:
2026-07-17 13:14:15 +08:00
parent fbd98ca801
commit 8f7c34dd86
2 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ const App = {
}
if (page === 'install') { this.showPublic('install'); return; }
if (page === 'home') { this.showPublic('home', param); return; }
if (page === 'home') { this.showPublic('home', param); document.getElementById('top-auth').classList.add('hidden'); return; }
if (page === 'login' || page === 'register' || page === 'forgot' || page === 'reset') { this.showPublic(page); return; }
if (!Auth.logged()) { location.hash = '#/login'; return; }

View File

@@ -25,9 +25,9 @@ const RegisterPage = {
${this.captcha ? `
<div class="form-group"><label>人机验证</label>
<div style="display:flex;align-items:center;gap:10px">
<div id="captcha-img" style="flex-shrink:0;border:1px solid var(--g200);border-radius:var(--r);overflow:hidden;cursor:pointer" onclick="RegisterPage.refreshCaptcha()" title="点击刷新">${this.captcha.svg}</div>
<input type="text" id="captcha-a" placeholder="输入图片字符" required style="flex:1;max-width:150px">
<div id="captcha-img" style="display:block;border:1px solid var(--g200);border-radius:var(--r);margin-bottom:8px;cursor:pointer;text-align:center" onclick="RegisterPage.refreshCaptcha()" title="点击刷新">${this.captcha.svg}</div>
<div style="display:flex;gap:8px">
<input type="text" id="captcha-a" placeholder="输入图片字符" required style="flex:1">
<input type="hidden" id="captcha-id" value="${this.captcha.id}">
</div>
</div>` : ''}