yiqiu
|
4eb134bea9
|
修复注册按钮显示问题 - 使用计算后的样式检查登录状态
continuous-integration/drone/push Build is passing
问题:JavaScript 检查的是 inline style.display 而不是计算后的样式
- HTML 中 no-login 元素有 style="display: none"
- JavaScript 看到 style.display === 'none' 判断已登录
- 实际上 CSS 已经设置 display: flex !important
解决方案:
- 使用 window.getComputedStyle() 获取实际应用的样式
- 添加 else 分支确保默认显示未登录状态
- 显式设置 inline style.display = 'flex' 来覆盖 HTML 中的 display: none
现在注册按钮应该正常显示!
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-17 16:41:51 +08:00 |
|
yiqiu
|
460068b768
|
移动端添加汉堡菜单和侧边导航栏,优化交互体验
continuous-integration/drone/push Build is passing
前端改动:
- 添加移动端汉堡菜单按钮(右上角)
- 创建侧边导航栏(从右侧滑入)
- 包含主导航菜单项
- 包含文档和控制台链接
- 包含登录/注册功能
- 已登录状态显示用户信息和操作菜单
- 移动端隐藏桌面导航链接(文档、控制台、登录、注册)
- 侧边栏支持点击遮罩层、关闭按钮、导航链接关闭
- 实现桌面端和移动端登录状态同步
- 使用 MutationObserver 监听登录状态变化
样式改动:
- 汉堡菜单三条杠动画效果(点击变叉号)
- 侧边栏深色科技风格,渐变背景
- 侧边栏从右侧滑入动画,带遮罩层
- 导航项 hover 效果和滑动动画
- 用户头像和信息卡片样式
- 响应式适配(767px、575px 断点)
交互优化:
- banner-list 快速入口卡片改为一行两个(grid 布局)
- 调整幻灯片进度条位置(767px: bottom 40px,575px: bottom 60px)
- 避免进度条和按钮重合
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 20:10:33 +08:00 |
|
yiqiu
|
4ebfaf7fd0
|
放大发发顺丰阿道夫撒
continuous-integration/drone/push Build is passing
|
2025-11-23 01:26:23 +08:00 |
|
yiqiu
|
8ff4c21c57
|
的发放
continuous-integration/drone/push Build is passing
|
2025-11-23 01:08:42 +08:00 |
|
yiqiu
|
f060daa9f4
|
更好发挥
continuous-integration/drone/push Build is passing
|
2025-11-23 00:58:33 +08:00 |
|
yiqiu
|
e4fb0b6135
|
风大四发安抚打算
continuous-integration/drone/push Build is passing
|
2025-11-23 00:53:08 +08:00 |
|
yiqiu
|
08e308b58d
|
风大四发
continuous-integration/drone/push Build is passing
|
2025-11-23 00:50:29 +08:00 |
|
yiqiu
|
191c63a90b
|
打发发达 大法
continuous-integration/drone/push Build is passing
|
2025-11-23 00:46:33 +08:00 |
|
arlenops
|
2c0fbc9d81
|
同步
|
2025-11-20 12:30:45 +08:00 |
|