fix(web): hide login button when logged out to fix header icon alignment

未登录时 UserChip 的登录按钮使用了深色背景配色(cream-50 色系),
在首页浅色背景上不可见但仍占据约 60px 宽度,导致齿轮/GitHub/X
图标被推离右边缘。改为未登录时不渲染 UserChip,登录入口保留在
开始游戏等需要认证的操作流程中。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yuanzonghao
2026-06-15 17:47:01 +08:00
parent d29087a875
commit 60224ea33b
3 changed files with 4 additions and 21 deletions
+1 -1
View File
@@ -1666,7 +1666,7 @@ export default function HomePage() {
>
<i className="fa-brands fa-x-twitter" />
</a>
<UserChip onLoginClick={() => setAuthModalOpen(true)} />
<UserChip />
</div>
</header>
+1 -1
View File
@@ -2574,7 +2574,7 @@ function PlayInner() {
<span className="text-clay-300">·</span>
<span>{String(beatCount).padStart(3, "0")} · </span>
</div>
<UserChip onLoginClick={() => setAuthModalOpen(true)} />
<UserChip />
</div>
</header>