修复导航栏高度为 0 的问题
All checks were successful
continuous-integration/drone/push Build is passing

- 在 .nav-header 添加 height: 72px(基础高度)
- 在 .nav-right 添加 height: 100% 和 align-items: stretch
- 改为从 align-items: center 改为 align-items: stretch

问题原因:
common.css 中的 .nav-header 没有设置高度
导致首页 nav-right 的 height: 100% 无法计算出实际高度(为 0)

首页会通过 #index .nav-header { height: 70px } 覆盖这个基础值
但其他页面会使用这个 72px 的基础高度

现在注册按钮应该能正常显示!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
yiqiu
2025-12-17 16:47:25 +08:00
parent 4eb134bea9
commit 44e230305b

View File

@@ -82,7 +82,7 @@
align-items: center;
justify-content: space-between;
padding: 0 20px;
height: 72px;
}
.nav-header .nav-left {
@@ -119,8 +119,9 @@
.nav-right {
display: flex;
align-items: center;
align-items: stretch;
font-size: 14px;
height: 100%;
}
.nav-right .control {